- Home /
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.
Please post the code you're using to move the character.
Thank you but I have now solved the problem! It was to do with the animation and the root position options.
Answer by SkaredCreations · Dec 14, 2014 at 05:44 PM
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.
Is the rigidbodys mass, drag and your global gravity set to sane values?
Your answer
![](https://koobas.hobune.stream/wayback/20220613174032im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Character is floating 1 Answer
Spline Interpolator + FPS Walker? 0 Answers
Collision not working 1 Answer
Infinite Runner Movement 2 Answers