- Home /
Character Controller Slope Limit on Terrain
Hi everyone,
I'm using the standard Unity Character Controller prefab with a standard Unity terrain and I want to stop the character from being able to run up steep slopes. The slope limit setting on the character controller works fine for meshes (if I put a plane at a steep angle, the character can't move up it) but it doesn't seem to work on the terrain: I can still run up almost vertical cliffs. Have I missed something? Is there no way to get the slope limit setting to work on terrains?
Cheers in advance, Guy
I guess you'll just have to add extra box colliders for steep mountains so that the character controller cant go up it. The reason this is happening is because youre allowed to jump up steep mountains as the mesh collider on terrains has a lot more vertices to stand on, than a regular mesh, making it able to jump up steep cliffs.