- Home /
Slope limiting with Rigidbody
Need help limiting the player from walking up slopes that are too steep as set in the inspector. Movement is mapped to the terrain and when the player's collider is grounded, the gravity's direction is the ground normal to keep the rigidbody from sliding with the physics engine. I do this so i can manually control how the player slides down slopes.
I need to cancel the move direction vector when moving up a slope that is too steep and I need to get the downward direction of the slope relative to the player so i can tune the slide.
Comment