- Home /
CharacterController always starts not Grounded
Whenever I start my game, the charactercontroller.IsGrounded is false. How can I make it so that it starts as true? Does it have something to do in with the characterController on the scene? I have it right above the ground and it seems to just go through the floor when I start it
Answer by MrJamieMcC · May 24, 2017 at 07:45 AM
You could simply make the book isGrounded true in the start/awake method?
This is very late but for those of us having the same problem; character controller.isGrounded is read-only and cannot be modified.
So is there any way of forcing the controller to be grounded at the start of the game?
Answer by endasil_unity · Jun 14, 2020 at 05:30 PM
It will be set to isGrounded automatically if it detects a floor. One mistake i have done is to forget to add a collider to the floor, so check if the floor has a collisionbox etc.