I'm making a 3d space exploration game and need to make planet gravity

Godot Version


What I would do is I’d would turn off global gravity (set the gravity vector to 0 on all axes) and then in the player object (space ship, I assume) would get the closest planet to the player and would apply a constant linear force in the direction of the planet. Hopefully this post will point you in the right direction.

1 Like