UNITY TUTORIAL | PROJECT | SPACE SHOOTER |5. Moving Player

UNITY TUTORIAL | PROJECT | SPACE SHOOTER |5. Moving Player2
Creating “PlayerControl” script

 

3
GetComponent() | Input.GetAxis
ezgif.com-video-to-gif (1)
moving “Player” but too slow
5
Creating public float “speed” variable
ezgif.com-video-to-gif (2)
adding more speed to “Player” but no boundary
4
putting value into public variable
7
Creating “Boundary” Class as Public | [System.Serializable] | limiting Player field using Mathf.Clamp
6
using “Serialized” Class to limit “Player”‘s field
ezgif.com-video-to-gif (3)
Bondary limited
9
Giving tilt to “Player” using RigidBody.Rotation
8
Public Tilt variable
ezgif.com-video-to-gif (4)
Giving tilt to “Player” but the wrong rotation
ezgif.com-video-to-gif (5)
Giving “Player” tilt in the right rotation

 

UNITY TUTORIAL | PHYSICS | 3D Physics | Adding Physics Torques

2
GameObject with RigidBody
3
Input.GetAxis() | RigidBody.AddTorque()
42.png
ForceMode
ezgif.com-video-to-gif (1)
AddingTorque()
ezgif.com-video-to-gif (2)
AddingTorque()
ezgif.com-video-to-gif
Enter a caption

ezgif.com-video-to-gif (3)

AddingTorque() | Angular Drag

UNITY TUTORIAL | PROJECT | Roll a Ball | 2. Moving the Player

Roll a Ball

Moving the Player

2
Adding RigidBody
3
Added RigidBody
5
Using RigidBody with Script
6
MovePlayer Script | RigidBody | FixedUpdate | Input.GetAxis | AddForce
7
Adding Script as Component
8
Adding Speed as Public Variable
9
Public Value in the Inspector
10
Chaing Value directly in the Inspector

ezgif.com-video-to-gif-2.gif

117.png
Chaing Value directly in the Inspector

ezgif.com-video-to-gif-3

12