The slope problem with character movement

Today, I faced the slope problem every game dev faces.
When working with a physics based movement, walking down a slope makes you bounce.
Walking up a slope would launch you in the air depending on the force you applied.
To negate this, you have to use a groundcheck + raycast and add force against the angle of the slope.
tldr; Vector3.ProjectOnPlane

Leave a Reply

Your email address will not be published. Required fields are marked *