Home▸Space & Astronomy▸Galaxy Collision Dynamics (2D)

Galaxy Collision Dynamics (2D)

A restricted-three-body companion to the 3D flyby: two point-mass galactic cores integrated from real Newtonian gravity, with roughly 1,800 test-star particles riding along in each galaxy's own Keplerian disk, so tidal tails and bridges emerge from the physics rather than being scripted.

Space & Astronomy2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-galaxy-collision-dynamics ↗ Open standalone

This 2D companion strips the 3D scene down to the physics that actually drives a galaxy merger: the two galactic cores are point masses integrated from real Newtonian gravity (softened so the equations never diverge at close approach), and roughly 1,800 star particles — split evenly between the two disks — respond every step to the combined pull of both cores, the same restricted-three-body technique Alar and Juri Toomre used in 1972 to first reproduce tidal tails numerically. Set a lopsided mass ratio and watch one disk survive almost intact while the lighter one is shredded; set a fast approach or a wide impact parameter and the encounter goes hyperbolic, the cores swinging past each other once and separating for good, with the live "Orbit type" readout confirming it from the actual integrated orbital energy rather than a guess.

⚙ Under the hood

Restricted three-body galaxy-merger lab: two leapfrog-integrated gravitating cores plus roughly 1,800 test-star particles per pair of disks, with a live bound/unbound orbital-energy readout.

galaxy collisionn-bodytidal tailsrestricted three-bodygravityleapfrog integration

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

What did you find?

Add reproduction steps (optional)