Jump Using Raycast.
So. i'm using this code to see if the player is on the ground.
return Physics.Raycast(transform.position, Vector3.down, groundDistance, ground);
The problem is: i'm using a capsule and when half of it's body is off a plataform i can't jump because raycast is casting down from it's center..... any sugestions?
Comment