Hierarchical N-body solver

Fast Multipole Gravity Lab

Softened Cartesian Taylor FMM evaluating long-range gravitational fields with adaptive quadtrees and dual-tree interaction passes.

M2M → M2L → L2L → P2P
Particles: 1,024 Frame Rate: 60.0 FPS FMM Solve Time: 1.20 ms Quadtree Nodes: 185 M2L Translations: 642 Sample Force Error: 0.42%
Scene Configuration
Preset
Particle Count 1024
FMM Solver
Expansion Order (p) 3
Separation Ratio (θ) 1.60
Leaf Capacity 32
Physics Parameters
Gravity (G) 0.65
Softening (ε) 0.018
Timestep (dt) 0.0030
View & Overlays
Click canvas to inject particles · Shift+Click to add massive core · Space to pause