Sliding down Terrain/Objects

so, anyone that’s played WoW would know that when you try to scale a slope that’s too steep, you just can’t get past it. you can try to jump, but it will not let you.

thing is, in Unity, no matter how steep the slope, you will always be able to scale it (even if you tell it to not walk up X degree slopes) by jumping

is there a way around this that doesn’t include creating bounding boxes that are invisible that block your progress? i’d like to see about making a terrain that’s meant to keep the player within the game boundaries like how they do it in WoW.

not asking for free scripts, just a “have you tried this page?” kinda deal or pointing me in the right direction. (note, this is currently using the 3rd person controller from the standard assets folder.)

Perhaps have a script to check for terrain slope > x degrees? Then perhaps apply more gravity to pull the character down? I’m probably not the best one to comment on this but since noone else has answered i’ll give me meager input.

Seems to me that you could add in the sliding from the character motor script.

–Eric

@Red
I was thinking about this earlier and I went with an idea very similar to Eric5h5’s post.
I used a character controller so I could get the slopeLimit on the player. Then I obtained the slope from the ground (groundSlope). If groundSlope was greater than the slopeLimit, then maybe turn off jumping or have the player jump in the opposite direction to prevent the player from jumping. in addition, if the groundSlope was greater than slopeLimit, have the character move away from the ground and let the gravity take the player down the slope.

Hope that helps,

-S