Celestial Body Simulator

Settings
G=

About

This is a Newtonian gravitational simulator written using Three.js. The bodies orbit using the following formula: m i d 2 q i d t 2 = j = 0 , j i n - 1 G m i m j ( q j - q i ) || q j - q i || 3 where:

The simulation often behaves differently between runs. My assumption is that this is due to miniscule differences in timing. An n-body system is inherrently chaotic, meaning that small changes to input parameters can cause huge changes in overall behaviour, so these small difference in timing may have a large effect.

You can see the source code hosted on Github, as well as planned features.