
I am new to 2D development and wanted to give a go at top down movement I have viewed some tutorials but have had no luck. With the previous example the car will drift 5. There are only a handful of changes that are required. Make sure that you have completed the previous lesson 2D Top Down Player Movement (Asteroids Style Space Shooter) as you will need the completed script for this. Length: 10 minutes Click to load and play the demo. Once done let’s create a player movement script. Then change the rigidbod2d settings to be kinematic. Now go ahead and add a rigidbody2d component on the right by clicking on add component. We want to drag our sprite into our scene.


If you are using a TileMap, steps 2 & 3 are. Set the object tag to "Collidable", or change the tag in the script. Attach a collider to all objects that you want to be collidable with. Attach this script or copy-paste this code onto a script attached to your player character. How to create SMOOTH top-down character movement in Unity! : Unit圓D. Add the HingePlat4 into the Connected Rigid Body of the HingePlat3.unity 2d top down movement. Add the Hinge Joint 2D property to the HingePlat3. HingePlat4 should have Is Kinematic enabled. Change the Size of both Box Collider 2D to (2.45,0.5). Add a RigidBody 2D and a Box Collider 2D to both platforms. (so if the boat is moving or turning and the player stands on the front of the boat, so he keeps beeing on that position)Unity player movement script 3d rigidbody.

the player is standing or walking on that floating boat. A boat is floating in the water with physics (so project settings - physics2d - gravity is set to 0,0).
