Character remains floating after walking up higher terrain.

Hey, we have a problem in which our character will walk up a hill and then remain floating at that height whilst running away, instead of running back down the hill.

Is there any way we can fix this?

Thank you.

You’re probably not using neither a CharacterController nor a RigidBody (or have a rigidbody with UseGravity=false) but instead you’re probably moving/translating the transform position, in this case you should do a Raycast towards Vector3.down and move the position at its hit after your movement calculations.

Did you fix it?