Allowing player to glide/fall slowly
I'm working on a 3D game where the player is able to glide on the press of a button - basically fall down at a greatly reduced rate while still keeping Z and X velocity.
I've had trouble working this out, and at the moment I just change the gravity of the entire game when they press the button. This works, but of course will likely bite me in the butt later on and I would prefer a way that just affects the player. I'm using a RigidBodyFPSController. Messing around with the settings on the rigid body hasn't yielded desired results.
Does anyone have ideas?
Answer by BobDollar · May 30, 2016 at 12:39 AM
I ended up just changing the Y velocity to a constant value. It's not ideal, but it does the job and will do much less potential harm than my original method.
Your answer
![](https://koobas.hobune.stream/wayback/20220612081152im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Gravity issue on MouvementController using RigidBody when going down a slope 0 Answers
3D Game RigidBody Problem 0 Answers
Gravity is not working 0 Answers
Adding collisions to a custom character controller? 1 Answer
Rigidbody with box collider falling through another rigidbody with box collider 0 Answers