Dance of Comets
Press spacebar to create random comets.
This is a simulation of multiple light objects ("comets") orbiting a single heavy object ("star") under Newtonian gravity (F = GMm/r^2.) The comets are not interacting. The star is assumed to be stationary.
The orbits are obtained by solving numerically the relevant differential equations using Euler method which can be inaccurate when a comet is very close to the star and the acceleration is large.