Rolling of off slopes

Hello,

I am trying to get my player up a hill, but if i go up the hill it will fall backwards, i have a box-collider on the player(currently just a capsule) so i know why it can’t walk up the hill cause it is obvious that it will fall if it bal ances on on side of the underside of the box-collider.
but i want him to just walk up the hill while staying up, just like if you were to go up a hill in rust or any game actually, i am new to unity and coding so it’s probably pretty obvious but…
so if someone could help me thx!

Rigidbody setting > constrains

Lock the rotation, note this take effect only on physics forces, if you change rotation through script it still effects

Assuming that’s your problem, you haven’t provided a lot of info about the set up

Thx, This worked it was pretty easy but i couldn’t figure it out.

It’s all part of the learning curve, we’ve all been there, feel free to ask for any help you need :wink: