This luminous point is a massless tracer. Its trajectory follows the two galaxy potentials, and the ribbon records its path since selection.
When two galaxies pass close together, the difference in gravitational pull across each disk stretches stellar orbits into graceful bridges and tails. Direct collisions between individual stars are extremely rare; the large-scale gravitational field does the sculpting.
The two nuclei attract each other as softened Plummer potentials. Every luminous tracer independently follows the combined time-dependent gravity using a fixed-step kick–drift–kick leapfrog integrator. The initial stellar disks have approximately circular orbits around their host nuclei. Length is measured in kiloparsecs; time in millions of years.
This is an educational restricted gravitational encounter, not a full galaxy merger. Stars do not pull on one another. Dark haloes are static analytic fields attached to the nuclei; gas collisions, star formation, dark-matter evolution, feedback, and dynamical friction are not simulated. Colours, glows, stellar sizes, and background are artistic visual encodings, not calibrated telescope data. The radial-velocity view is a direct projection of simulated tracer velocities along your camera's line of sight.
Inspired by A. & J. Toomre, Galactic Bridges and Tails (ApJ 178, 623–666, 1972). This simulation is an original educational implementation, not a reproduction of their numerical results.
A compatible WebGL2 browser is required.