Running
Hierarchical N-body solver

Fast Multipole Gravity Lab

Softened Newtonian gravity on an adaptive quadtree. Far cells become Cartesian multipoles, translate into local Taylor fields, and only touching leaves use exact pairs.

M2M → M2L → L2L → P2P

Live solver

Particles0
Frames / s—
FMM solve—
Quadtree nodes0
M2L interactions0
Sample force error—
M2M 0 M2L 0 L2L 0 P2P 0

Scene

1024

FMM solver

3
1.60
32

Higher order and stricter separation increase M2L and near-field work. Geometric size is the cell circumradius.

Physics

0.65
0.018
0.0030

View

Click to inject a particle cloud · Shift-click to add a massive body · Space pauses