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
8037 views / 831 in the last 7 days
6 votes | 0 in the last 7 days
This scenario is a member of: Space Simulations
To embed this scenario in a web page, copy the following HTML code:
Want to leave a comment? You must first log in.