- Home /
CharacterController gets stuck in procedural map
In my project, i have a procedurally generated map consisting of several pre-made rooms which get connected by their "doors". I have then created AI's (with the help of RAIN AI) which move with the CharacterController by calling the Move method. In many occasions, my AI gets stuck in the transition between rooms.
To isolate the bug and make sure it was not a navmesh problem, I extracted a section of the generated map in which this happened and regenerated the navmesh. I then observed that the bug still consistently happened, so It is likely to be due to the CharacterController.
This gif ilustrates the problem: http://i.imgur.com/jZzKkPi.gif
As you can see, when the AI arrives the transition between rooms (being both the "room" simple ramps), it gets stuck, and in this example it even goes a bit upwards.
This happens in many cases, even when descending the ramps, its not a "going up ramps only" thing. I already tried messing around with the CharacterController variables, and some changes do improve this behavious, but occasionally it still happens, which is unacceptable.
Anyone had the same problem?
Sounds more like a physics-related problem, try adding the CC settings, like max step height.
I aint using the physics engine tho, Character Controller's goal is to avoid that. I'm using the default settings...
Well yeah sure but the CC still simulates a RigidBody and registers collisions.
The map was made with probuilder basic, so all colliders are automatic ($$anonymous$$esh Colliders)