Actor falling over

Hello! I have been unable to find an answer to my problem. In my game the actor is constantly moving forward, going over ramps and such. I want the actor to follow the slope of the ramp but not flip over. Many solutions call for me to restrain the movement but this makes my actor's movement unrealistic as they slightly hover when they go up the ramps. Is there some way to allow the actor correct itself? Like as it is in the air it can keep itself up? Sorry if this is confusing. THANKS FOR YOUR HELP AGAIN!
Comments
to recap:
mass = density * volume
force = mass * acceleration ( in this case, gravitational acceleration)
moment = force * length of arm
by setting density to zero, we nullify any rotational moment.