Repository navigation
2.0.0 — Rewritten on LWJGL and OpenGL
A complete rewrite: JavaFX is gone, and the simulator now runs on LWJGL 3 and OpenGL.
What it does
- The real solar system. Positions and velocities come from JPL Horizons at the starting date; without a connection, Keplerian orbits of the major planets are used instead.
- Predicted paths. Every body shows where it will be over the next year, obtained by running a copy of the simulation ahead of time.
- Impacts with physical outcomes. Collisions are detected along the whole time step, so nothing tunnels through a planet. Slow encounters merge; faster ones follow the scaling laws of Leinhardt and Stewart, with the largest remnant and fragments that conserve mass, momentum and centre of mass.
- An impact you can watch. When the followed body is hit, time slows down by itself, with a fireball and a plume of ejecta.
Methods
- Gravity by direct pairwise summation, integrated with velocity Verlet.
- Continuous collision detection between swept spheres.
- Lambert shading, with limb darkening for the Sun.
Running it
Requires JDK 21 or later.
./gradlew run