This document outlines the steps to create a 3D Pong game, including downloading and installing assets, setting up the game environment, and writing movement and ball scripts. Key tasks include importing assets into Unity, configuring player and ball positions, and implementing collision detection. The session concludes with a summary of the learned concepts related to game development in Unity.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
2 views14 pages
Session 10
This document outlines the steps to create a 3D Pong game, including downloading and installing assets, setting up the game environment, and writing movement and ball scripts. Key tasks include importing assets into Unity, configuring player and ball positions, and implementing collision detection. The session concludes with a summary of the learned concepts related to game development in Unity.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14
PONG 3D
WHAT WE WILL DO THIS SESSION
Download and Instal Write Movement Write Ball Script
our first Assets from Script interent • First enter the link • Extract all files • Put file inside Asset folder in unity DOWNLOAD • Go to CyberPong3D_v2 >> ASSET CyberPong3D_v2 >>CyberPong3D_Workshop_v2 and drag it to Asset folder and double click it and press import DOWNLOAD ASSET SETUP ENVIRONMENTS
• Go to CyberPong3D_Starter >> Arena and put it in Scene and reset
Transform • Then in same folder take Player and put it in left goal and playerTwo in right goal • And take ball(gray one) and reset position too then take the other ball(Mat) and put it in ball • Make position of Camera (0,20,0) and rotation (90,0,0) • Add box Colliders in Goal left and right SETUP ENVIRONMENTS • To make Material glowing go to Global Volume object then click New in Volume then Override >> post processing >>Bloom and make like this: MOVEMENT SCRIPT
• Add Box Collider and make size
(2,2,6)on both and RigidBody to Player and PlayerTwo • In Arena >> Walls there 2 GameObject for top and bottom walls add box Collider and make its size x = 35 Add tag named “Wall” in both of them • Create RacketController Script and put it in both Player and PlayerTwo MOVEMENT SCRIPT Add Sphere Collider and check Add isTrigger to true
Add RigidBody and check isKinematic
BALL SCRIPT Add to true
Put Put BallController script in Ball
Add Add tag named “Ball” in it
BALL SCRIPT
• When open BallController Script uncomment minDirection variable
• Write this Code and take other comment and put it in else if (other.CompareTag("Racket")) BALL SCRIPT BALL SCRIPT
• Sometimes Random.range choose 0 in both x and z so to avoid that we
wrote this if: Summary in the end of the session we have learned • Start our Third Game (3D Pong) • Download and Instal our first Assets from interent • SETUP ENVIRONMENTS • Write Movement Script • Write Ball Script QUESTIONS?!