- Home /
After unchilding a Character controller, it becomes disoriented
Hello!
I have a character controller which is able to ride a rigidbody vehicle by making it a parent. It works fine, until I get off. Once I unchild the character controller and reactivate the CharacterMotor script, my bearings are all wrong. Sometimes, left will move right and forward will move back, etc.
How do I reset the character controller back to normal?
is it rotated at all? The CharacterController does not handle rotations
It took me a while to understand this, because even if the character controller is rotated, it appears perfectly vertical and looks unrotated.
Indeed, the fix for my problem was simply to add a single line to my character controller:
transform.rotation = Quaternion.identity;
in the vehicle dismount code. This zeros it out. Thank you for your help.
Your answer
![](https://koobas.hobune.stream/wayback/20220613110731im_/https://answers.unity.com/themes/thub/images/avi.jpg)