Collision
Every point of light here is a test particle in a restricted N-body simulation, the method Alar and Juri Toomre used in 1972 to show that the bridges and tails of interacting galaxies are made by tides. Each galaxy is a rigid gravitational potential (a dense bulge inside a broad dark-matter halo). The two cores pull on each other, and up to half a million massless stars feel both, advanced on your GPU by a time-symmetric leapfrog integrator several times per frame.
Tidal tails. Tides stretch each disk along the line to its partner. On a prograde pass, where a disk spins the same way the pair orbits, stars on the far side keep pace with the passing galaxy long enough to be pulled free and stream away in long, curving tails, while the near side reaches out as a bridge.
Stars almost never collide. If the Sun were a grain of sand 1 mm across, the nearest star would be another grain about 30 km away. The disks pass through each other and only gravity rearranges them. Vast gas clouds do collide, which is why real mergers trigger bursts of star formation: the pink knots are glowing hydrogen around newborn stars.
Dark-matter halos outweigh the stars many times over; here each halo holds 13 times its bulge’s mass and keeps the rotation curve near 180–200 km/s. Overlapping halos drag on each other (dynamical friction), draining orbital energy, so each fly-by is followed by a closer one until the cores merge.
Our future. Andromeda is about 2.5 million light-years away and closing at roughly 110 km/s. Hubble measurements (van der Marel et al., 2012) predicted a first passage about 4 billion years from now and a merger some 2 billion years later; a 2025 study that added Gaia data and the pull of M33 and the Large Magellanic Cloud put the odds of a merger within 10 billion years closer to 50:50.
Controls
- Drag · arrow keysOrbit the camera
- Scroll · pinch · + −Zoom
- SpacePlay or pause
- RRestart the scenario
- 1–4Choose a scenario
- [ ]Slower · faster
- F, then dragFling a third galaxy
- TColour stars by their home galaxy
- HHide the interface
Rendering: soft Gaussian star sprites in a 16-bit floating-point buffer, dust that dims and reddens the light behind it, bloom, and an asinh stretch like the one astronomers use for colour images.