Hierarchical N-body solver

Fast Multipole Gravity Lab

Real-time 2D softened gravity solved via adaptive quadtree Cartesian Taylor expansions rather than naive all-pairs summation.

M2M → M2L → L2L → P2P
M2M: child moments to parents M2L: far cells to local fields L2L: parent fields to leaves P2P: exact neighboring forces
Particles 1024 Frame Rate 60.0 fps FMM Solve 0.00 ms Quadtree Nodes 0 M2L Translations 0 Sample RMS Error 0.00%
Click to inject a particle cloud · Shift-click to add a massive body · Space pauses