Hey guys,
Does anyone know how to limit how far a player can walk up terrain of certain angles? I’ve got a volcano in the center of my terrain that you can walk right up the edge of. I’d like to set some sort of player walk slope blocking… Thing…
Anyone know?
Set the slope limit on the character controller.
–Eric
Okay that worked for my terrain but now I’ve got some staircase meshes I can’t walk up. Is there a way to not include meshes in the slope angle limit?
A straightforward way to do this is to create an empty GameObject with a long, thin box collider and angle it so that it creates a slope up the stairs. That way, the character will walk up the invisible slope. You can refine this slightly by pushing the slope downwards slightly so that the top corners of the stairs just poke through. This should give the character a noticeable bump as it encounters each stair.