2DCharacterControllerTutorial
2DCharacterControllerTutorial copied to clipboard
Source code for 2D Character Controller tutorial for Unity.
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...