N-body simulation

Barnes-Hut N-Body Simulation

Two galaxies meet. Every star feels every other through an O(n log n) quadtree, in Scala.js, drawn with WebGL.

Scene

Loading

Paused Detecting renderer View 100% 0 bodies Orbit preset

Drag to pan, scroll or pinch to zoom, double-tap to reset the view.