2DCharacterControllerTutorial
2DCharacterControllerTutorial copied to clipboard
Jumping
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 checking if velocity.y < 0, check velocity.y < 0.01f