Show >
N-Body Playground
2D N-body simulation with inverse-square gravity, Mie potential, and wall effects.
⬅︎
Update Canvas
Restart
UI
Dark mode
Follow system
Dark
Light
Particle count
Particle alpha
Box Display size (px)
Canvas width (px)
Canvas height (px)
Time Scale (sim s / real s)
Environment
Wall bounciness (0-1)
Wall jitter (px/frame)
Max accel (post-sum)
Max speed (magnitude)
Air friction
Forces
Down gravity (px/s²)
Inverse-square gravity (G)
Lennard-Jones (generalized)
Well depth (ε)
Equilibrium σ (px)
m (repulsive exponent)
n (attractive exponent)
Optimization
Integration
Forward Euler
Force Calculation
All pairs
Stats
Temperature:
0
Total KE:
0
Potential E:
0
Total E:
0
Mean x accel:
0
Mean y accel:
0
Max acc mag:
0
Current max speed:
0
Mean LJ attraction:
0
Mean LJ repulsion:
0
Sug Steps/Sim s:
0
Render FPS:
0
Steps / Sim s:
0
Steps / Real s:
0
Time Scale req:
0
Time Scale eff:
0