![Twitter](/assets/twitter-4e19209ef84344ee0c433f4c7bad8d49.png)
![Twitter.hover](/assets/twitter.hover-1fb19a5bafc50deace8f88eaec867845.png)
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
9173 views / 21 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