Gravity Objects 1.1 3D Tools 3.0 Community
Submitted by user Jummit; MIT; 2018-09-05
Adds nodes that act like planets (they have gravity)
Add a GravityObject and add a MeshInstance (or any node that extends from spatial) and a CollisionShape to make a planet. To make a spaceship to travel around just do the same, just use a SpaceShip instead of a GravityObject. I would recommend setting Mass to 1 (in the node inspector). To add a script just change the existing script to a new one and let it extend from "res://addons/gravity_objects/gravity_object_node.gd" (the planet script) or "res://addons/gravity_objects/space_ship_node.gd" (the spaceship script)
View files Download Submit an issue Recent Edits