Report as inappropriate.
A framework that simulates gravity in space. Everything with gravity should be a subclass of Matter.
To make something affected by gravity, add gravitate() in its act method.
In this example, the sun has a mass of 300 and the planets of 0.5.
Update 20/10/08: Adjusted the orbits of planets, caused the sun to be affected by gravity, and fixed a bug in the getBearing function
8951 views / 20 in the last 7 days
6 votes | 0 in the last 7 days
This scenario is a member of: Space Simulations
Want to leave a comment? You must first log in.
2008/10/18
2008/10/18
2008/10/19
2008/10/19
2010/12/2
2013/11/27
2013/11/27