Or if using states just don’t apply gravity to the motion.
i am using a rigidbody 2d so the gravity is already add so how can i stop it for the dash
i have a code in my ready function for gravity strength set_applied_force(Vector2(0,extra_gravity)) i want to kow how to disable it on dash
Newby | 2017-11-21 05:25
if you are using rigid body for this kind of custom physics, the control of the body should be done in _integrate_forces (custom integrator enabled), you will have to null the y component of the state velocity on every step.
Check the platformer demo for a full rigid character movement example.