BARNES-HUT GRAVITY SIMULATION

A two-dimensional n-body simulation, implemented in javascript, with HTML/CSS visualisation. The Demo is initialised with 600 bodies of varying mass with random initial location and velocity.

Approximation algorithm due to J.Barnes and P.Hut, 1986.

Back to index