- Home /
Unity Character Controller How to push yourself away from walls or steep slopes?
I am working with the standard asset Third Person Controller and I want to see if I can use the move function to somehow push my character away from a wall or slope upon a collision in OnControllerColliderHit function. I simply right now prevent the character from jumping on steep slopes defined by slope limit. I want an effect where on collision, the character moves in the opposite direction of the wall in its normal direction perhaps.
Reason is as a non animated character, I am having issues with the Rover being potentially shaky or stuck on such slopes; this is designed using Unity's in-built terrain editor.
Also, using a CharacterController shouldn't affect my ability to rotate the character to the normal of the terrain correct? Sorry, I'm kinda new to Unity but shaky on my computer graphics and vector knowledge. Thanks.
Your answer
Follow this Question
Related Questions
Basic movement. Walking on walls. 8 Answers
Make Gameobject Stand On Surface Facing Certain Direction 0 Answers
About orientation 0 Answers
Can't change vector direction 0 Answers