Stopping the player being able to move up steep edges?

So I can’t seem to think of a nice way of having the player be unable to move up steep edges, my player is currently able to run straight up the side of something the same angle as a forward slash ( / ) which looks ugly and doesn’t make a lot of sense.

I have tried playing around with the Physics2D - Friction but I couldn’t get any good results.

The line(s) of code that control my player movement use Rigidbody2D velocity: rb2d.velocity = new Vector2(moveSpeed, rb2d.velocity.y);

Any pointers on how to stop my player being able to run up edges of a certain ‘steepness’ would be great.

Thanks :slight_smile:

Have a look at this, the forum will not allow it as a media link.

1 Like

Thankyou for this link, I’m actually just going to watch from episode 1 to learn more stuff as this seems like a nice tutorial series :smile:

He knows his stuff alright, and has an easy voice to listen too enjoy.

1 Like