- Home /
Is there a way to enable the CharacterController collider to tilt?
I'm working on a script for a character that can run up curves onto walls, and go through loops Sonic-the-Hedgehog style, but I'm finding that the CharacterController has its collider locked into the upright position... I don't want to use a rigidbody because I don't want to depend on the built-in physics, and the move function does just what I need... but the CharacterController seems unable to tilt. What's up with that? O_O
Answer by Eric5h5 · Jan 12, 2011 at 07:50 AM
The character controller cannot be rotated. It's basically optimized for Quake/Unreal/etc. type games.
Is there a replacement that has an equivalent move() function but does not suffer this specialization?
Locked roll is one of the main reasons the Controller is easier to manipulate for characters than a Rigidbody. To run with this kind of acrobatic behaviour you can no longer feasibly ignore the physics engine; for example, if you run halfway up a wall and then stop, you need to deal with that in ways the CC doen't cover.
Hey, movePosition seems to do the trick... except for not doing collision detection. -_-
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
make addforce ignore player controller? 1 Answer
how can i make my character run up ramps like in sonic, fancy pants or even line rider? 1 Answer
Error on checking collision or code desync? 0 Answers
Character Controller collision speed 0 Answers