Galaxy Collision Dynamics (2D)
The same restricted N-body encounter seen as a map: the top-down (x, z) view of the two spiral galaxies and 2,400 test stars with the paths of the cores, and an edge-on (x, y) view that shows how tilted disks are warped into tails. Same physics and numerical checks as the 3D version.
Fly two galaxies into each other and watch tidal tails and bridges grow. Two galaxy cores (Plummer spheres, up to 1.5 times the mass of the main galaxy of 10^11 solar masses) move on an exact Kepler orbit that you shape with the mass ratio, closest approach and eccentricity, while 2,400 test stars ride in thin disks around them, each galaxy tilted as you choose. The stars feel both cores, so the tidal field is exact: prograde disks are pulled into long arms and bridges, retrograde disks survive almost untouched, just as Toomre and Toomre found in 1972. Blender-built spiral galaxies with glowing bulges and dust lanes over a Cycles star field; live readouts count stars in the main bodies, in tails, escaped and captured, in kiloparsecs, Myr and km/s. Numerical checks cover the Kepler period and pericentre of the cores, energy, angular momentum and momentum conservation, the Jacobi constant of the restricted problem, circular orbits in an isolated disk and the unit conversion.
The same restricted N-body encounter seen as a map: the top-down (x, z) view of the two spiral galaxies and 2,400 test stars with the paths of the cores, and an edge-on (x, y) view that shows how tilted disks are warped into tails. Same physics and numerical checks as the 3D version.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install