A simple simulation of our solar system
Passionate about astronomy, I completed this project in 2020 to simulate the solar system in 3D using Unity 2020. I created it when I was just starting to learn programming, so the calculations and the code may not be entirely accurate or optimized.
How can I get it?
You can download the installer available for Windows in the Releases section, then follow the instructions provided.
You can modify most settings from the in-game pause menu. Here are the default controls:
| Action | Key |
|---|---|
| Move Forward | Z |
| Move Backward | S |
| Move Left | Q |
| Move Right | F |
| Move Up | SPACE |
| Move Down | LEFT CONTROL |
| Speed Boost | SHIFT |
| Lock onto a Planet | CAPS LOCK |
| Next Planet | RIGHT ARROW |
| Previous Planet | LEFT ARROW |
Each planet has the following orbital parameters:
-
$T$ : Orbital period (in ticks) -
$e$ : Orbital eccentricity (0 = circle, close to 1 = ellipse) -
$a$ : Semi-major axis (in km) -
$t$ : Time elapsed (in ticks, comparable to days) -
$i$ : Orbital inclination (in radians) -
$M$ : Mean anomaly -
$E$ : Eccentric anomaly -
$\nu$ : True anomaly -
$l$ : Semi-latus rectum -
$r$ : Distance from the Sun at a given position
Mean anomaly:
Eccentric anomaly (Kepler’s Equation, solved numerically):
True anomaly:
Semi-latus rectum:
Distance from the Sun:
Coordinates (initial 2D):
Inclination transformation:
This project is licensed under the GPL-3.0 License.