Galaxies contain billions of stars, but the gaps between stars are immense. During a galactic close passage, direct star–star collisions are rare. Instead, each galaxy's gravitational field distorts the other, often drawing out enormous tidal bridges and stellar tails.
Two extended galaxy centers move under mutual, softened Newtonian gravity. Thousands of massless stellar tracers move through both time-dependent Plummer gravitational potentials. The integrator is velocity-Verlet, using fixed timesteps. Every slider changes the numerical initial conditions, not a canned animation.
aᵢ = −Σ G Mⱼ (rᵢ−Rⱼ) / (|rᵢ−Rⱼ|² + εⱼ²)³ᐟ²Launch a massless test star on an initially circular orbit around its host. Its subsequent position and velocity are integrated under both galaxies. Watch its instantaneous host-relative orbital energy. Negative energy suggests it is locally bound to that host; positive energy suggests possible stripping, but near an encounter the classification is only an approximation.
Ehost ≈ ½|v−Vhost|² − G Mhost / √(d² + ε²)This is an instructive restricted N-body model, not a self-consistent galaxy-merger simulation. The stars do not gravitate on each other or back-react on the cores. The smooth Plummer potential stands in for a galaxy's luminous matter and dark halo; realistic bulge/disk/halo profiles, gas hydrodynamics, star formation, dissipative processes, and dynamical friction are omitted. The glowing colors and apparent dust are artistic, and no General Relativity or true fluid shocks are modeled.
WebGL2 could not be initialized.
Use an up-to-date browser with hardware acceleration. Install project dependencies with npm install, then start it with npm run dev.