Home▸Physics & Mechanics▸Gravity Well Particle Lab (2D)

Gravity Well Particle Lab (2D)

A top-down accretion disk: thousands of particles spiral into a central mass under an inverse-square pull, their radial and angular velocity driven by the same equations as the 3D scene, just viewed from directly above.

Physics & Mechanics2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-gravity-well-particle-lab ↗ Open standalone

This 2D companion swaps the orbiting camera for a fixed top-down view of the same accretion disk: particles are tracked in polar coordinates (radius, angle) and pulled inward by an inverse-square force from the central mass, exactly as in the 3D scene, so the spiral-in behaviour, capture rate and disk-turbulence wobble read the same — just flattened into a single plane you can watch at a glance.

⚙ Under the hood

Each particle's radial velocity decreases by mass / radius² per step (inverse-square gravity), while angular velocity scales roughly as 1/√radius (a Kepler-like falloff); turbulence adds a sinusoidal radial wobble, and particles crossing the inner event-horizon radius are captured and respawned at the disk's outer edge.

gravity wellorbital mechanicsaccretion diskinverse-square lawparticle system

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)