2DCharacterControllerTutorial icon indicating copy to clipboard operation
2DCharacterControllerTutorial copied to clipboard

Source code for 2D Character Controller tutorial for Unity.

Results 5 2DCharacterControllerTutorial issues
Sort by recently updated
recently updated
newest added

for some reason i have to move my character after i land, as if i jump from the same position i land in i cant jump So therefore i move...

It seems that the controller doesn't work well when the collisions are happening on both the bottom and the side of the character with a single object. If the ground...

If you are working with a BoxCollider2D that has negative y offset (-0.15 in my case), the Physics2D.OverlapBoxAll check will not always detect the ground collider. This causes the player...

Having trouble jumping, player get's stuck for a moment if colliding with celling. Maybe add (colliderDistance.pointA - colliderDistance.pointB) / Time.DeltaTime to the velocity, just like the transform.Translate. Also instead of...

In the [main controller script](https://github.com/IronWarrior/2DCharacterControllerTutorial/blob/master/Assets/Scripts/CharacterController2D.cs.meta) program first checks if the character is grounded before the variable gets any value. So after initialization the private variable "grounded" first being checked for...