Newtonian Gravity Module – Asset Store

Asset Store link: soon…  will be released as a part of Procedural Planet Generator Module soon…

Quick manual

  1. Attach GravityMasterBody Script to Planet/Star RigidBody and make it kinematic

 

Gravity Master body Name: name of a Gravity Master Body

Gravity Master Body Valiue: value of a gravity force on the surface of a Gravity Master Body [m/s^2] [metre per second squared]

Gravity Master Body Radius: radius of the Gravity Master Body [m]

  1. Attach GravitySlaveBody Script to RigidBody floating in space. Uncheck “Use Gravity”
  2. Attach addImpulseInitialForce to Moons for orbiting initation.
  3. Gizmos:

Red: velocity of the Gravity Slave Body

Blue: gravity vectors for each of the Gravity Master Bodies

Cyan: total gravity vector