- Home /
Is there a way to get the character controller to rotate?
I've discovered that a problem of mine is that when I rotate my character, the controller isn't rotated, which creates problems. Is there any way to rotate the controller along with the mesh?
Are the character controller and the mesh not attached to the same gameobject?
yes, but rotating the gameobject does not rotate the controller.
I'm not sure I understand your problem. the CharacterController component has no concept of it's XYZ location. When you use it's "move" function, for instance, at the end of the day it just changes the transform component on the gameobject it is attached to.
Can you clarify the problem?
the collider is part of the character controller (or the other way around), and it doesn't rotate. I want it to. I don't know how much clearer I can be.
Character controllers unfortunately can't rotate like that. It's one of their prime deficiencies. If it's absolutely necessary, you may have better luck with a kinematic rigidbody in combination with a capsule collider. Those can rotate.