0 votes

How to include zero gravity in a rigid body 2D?

asked Apr 25 in Engine by Korsut (28 points)

In the inspector there's the gravity_scale property which can be set to 0, or are you after a certain behaviour using gravity?

I would like the object, being in zero gravity, to move slightly.

In that case if you've got the movement you're wanting you can set gravity_scale to 0.

If you need help with the movement have a look at these methods - translate, add_force, add_central_force and applied_force in the docs.
e.g.

add_central_force(Vector2.UP)
#This will constantly accelerate upwards.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.