This is an approximate simulation of n
celestial bodies in 3D space under the influence of each others' gravitational force. It tries to simulate the unpredictable trajectories of an n-body system. The motion is always chaotic
Each body has the same mass and starts with 0 velocity, but the following parameters are configurable in code:
- mass of each body
- number of bodies
- initial positions and velocities of bodies
Note
Configuring initial positions and velocities in the code currently requires some manual effort.
Caution
This simulation is approximate and the performance tends to degrade over time.
v1.0