Rigidbody Stick To Floor

Hello. Thanks to anyone who answers or comments. I have a rigid body character, with basic jump and WASD movement. Everything works fine until I run up a ramp or anything elevated. Because I am using a rigid body the velocity goes up the ramp and I fly off the ground. Is there some way that I can prevent this? I tried ray casting but that doesn’t seem to work well or i did the math wrong.

On your character controller you will see slope limit and a step offset. Those might be your problem, because when a slope is to much for the character it will bounce backwards sometimes