Question by
Brockdish · Feb 28 at 08:41 PM ·
charactercontrollerracing game
player.isGrounded() doesnt work as it should ,':|
I made a public bool which shows if the player is grounded and when I start the game, the bool is blinking lol I think the problem is in this code
void Gravity()
{
downMovement.y -= mass * Time.deltaTime;
if (player.isGrounded && downMovement.y < 0) downMovement.y = 0;
}
How do I fix this?
Comment
Your answer