Interactive 2D N-body sandbox. Every frame a fresh adaptive quadtree is built and solved with a Cartesian fast multipole method — far cells are compressed into multipole moments and expanded back into local fields, while only genuinely neighbouring leaves fall back to exact pairwise forces.
M2M → M2L → L2L → P2P