- Home /
How to stop first person controller from move after movement keys are not pressed anymore?
I'm using first person controller but i continues to move some steps even after keys was not pressed.. i tried disabling sliding property but didn't worked
Answer by Cherno · Sep 07, 2014 at 11:14 PM
Since CharacterControllers are fundamentally different than rigidbodies, normal physic-based solution don't apply here. With a rigidboy, your could just set the velocity to zero, maybe there is a similar way for CCs? Either way, my personal opinion is that the CC is good for quick testing but less than ideal for serious character movement. It's probably not what you wanted to hear, but I strongly suggest switching to a rigidboy-based setup which offers far more flexibility. If you decide to go down this road, take a look at this cool tutorial:
Unity 3.x Scripting-Character Controller versus Rigidbody
Hope that helps in any way.
Your answer
![](https://koobas.hobune.stream/wayback/20220613162438im_/https://answers.unity.com/themes/thub/images/avi.jpg)