Zoom 10x
Size 1x
Speed 60x
Time: 0 seconds

Press keys 0-9, Q, W, E, Z, X, C to load scenarios.

Press 'H' to toggle HUD, 'R' to reset.

Readme

  1. How to Use
    1. Click the Run button to load the Python program.
    2. Press the number keys at the top of the keyboard and the Q, W, E, Z, X keys to load a scenario.
    3. "Size" only increases the visual size of an object so it's easier to see. It doesn't change the gravity, and it doesn't cause any collisions even if they now appear to be overlapping.
    4. "Speed" increases the speed of the simulation. Non-linear increments.
  2. Keyboard Shortcut Keys
    1. H toggle on/off the HUD (buttons and scale).
    2. R resets the current scenario.
    3. F toggles the blur effect, which may be seen if the speed is increased.
  3. Scenarios
    1. Scenario 0 is an object falling to Earth
    2. Scenario 1 is an object with some initial velocity to take off, but it's pulled down
    3. Scenario 2 is the same as scenario 1, but with more velocity and it is zoomed out to show the curvature of the Earth
    4. Scenario 3 is an object with enough initial velocity to take off and it stays in orbit
    5. Scenario 4 is the moon orbiting the Earth
    6. Scenario 5 shows two objeects of the same mass orbiting each other
    7. Scenario 6 is an orbit being created with no starting velocity
    8. Scenario 7 shows three objects orbiting each other for some time before colliding
    9. Scenario 8 shows the inner solar system
    10. Scenario 9 shows all the planets in the solar system orbiting the Sun
    11. Scenario 10 (Q) shows the Sun orbiting the Super Massive Black Hole
    12. Scenario 11 (W) shows the Earth and the Moon, plus 10 randomly placed objects moving at random velocities
    13. Scenario 12 (E) shows the Earth and the Moon, and a counter-clockwise moon on crash course with regular moon
    14. Scenario 13 (Z) is the same as Scenario 6, but there are 60 randomly placed objects. The objects that remain in orbit usually all go in the same direction.
    15. Scenario 14 (X) is tracking the Earth, so that is giving an Earth centric perspective which will make the other planets and the sun appear to be orbitting the Earth.
  4. Final Notes
    1. All collisions are perfectly inelastic.
    2. There is something weird with how long it takes for real-world objects to orbit in some scenarios. I don't know if that is the fault of my math or if there needs to be a specific distance or speed for the orbitting objects.
- Created by Khalid Shahin Spring 2014
Automatically converted to HTML/CSS/JavaScript in 2025