Unity 2D - 8 Direction Player movement using Physics

Опубликовано: 15 Май 2026
на канале: Code Doge
14,998
166

Please follow me on Twitter to get more updates on memes, tech news, devops/developer content!
  / codedoge4  

#unity #2dmovement

Link to project files :
https://github.com/jc566/Youtube_Solu...

Link to 1 hour Unity 2D shooter tutorial :
   • Unity 2D Shooter Game Tutorial (Galaga, Sp...  

Important Time Stamps
00:00 - Intro
00:23 - Creating test objects
01:13 - Intro to Input Manager
02:30 - Using Tranform.translate to move in 8 directions
04:56 - Why transform.trasnlate is not preferred method
05:41 - Using Physics and Rigidbody2D to move
08:17 - Difference between Void Update and Void FixedUpdate
09:09 - Using Rigidbody.Addforce over Rigidbody.Velocity
10:18 - Explanation of Rigidbody2D.velocity vs Rigidbody2D.AddForce

In this video we cover how to move in 8 directions in Unity2D using both transform.Translate and Rigidbody (Physics movement).

There are some brief explanations on the difference of Void Update vs Void FixedUpdate as well as explanations for AddForce vs Velocity.

Great explanation of AddForce vs Velocity :
https://gamedev.stackexchange.com/que...

Unity Forums Explanation of Difference :
https://answers.unity.com/questions/1...

Link to Update() :
https://docs.unity3d.com/ScriptRefere...

Link to FixedUpdate() :
https://docs.unity3d.com/ScriptRefere...

Link to RigidBody.AddForce :
https://docs.unity3d.com/ScriptRefere...

Link to RigidBody.Velocity :
https://docs.unity3d.com/ScriptRefere...