MILKDROMEDA SIMULATORAN INTERACTIVE GALAXY SANDBOX
FIRST ENCOUNTER IN
≈4,165,000,000years
000DAYS:00HRS:00MIN:00SEC
MILKY WAYOUR HOME GALAXY
ANDROMEDAMESSIER 31
↗
The universe is in no hurry.At 1×, one second here is one second in space.
100 kpc
DRAG TO ORBIT·SCROLL TO ZOOM
TIME FROM NOWToday
Calculating gravity

Share this moment.

Anyone with the link can view this scene, including any custom galaxy names. Your saved-galaxy library is not shared.

How shared scenes work

The scene is saved on our server. Links don’t expire automatically, and there’s no self-service delete yet.

A link recreates the simulation, not a screenshot. It opens paused with your camera angle; framing may vary with screen size.

Choose a cosmic adventure.

Small centers. Real pull.

Hiding markers does not switch off gravity. A double ring means two black holes are too close to distinguish on screen, not that they have merged.

What this model can—and cannot—show

Every catalog model starts with a central black hole. Where we lack a measured mass, we estimate one from the galaxy’s stellar mass. That is a sandbox assumption: real galaxies do not all have confirmed central black holes, and individual masses can differ greatly from a scaling relation. Custom builds can still choose none.

Before galaxy core coalescence, black holes ride with their host centers. Afterwards, they move separately under the remnant’s smooth gravity and their mutual attraction. They are not forced to merge. The galaxy background does not react to their individual motion.

Gravity is softened over the listed resolution scale to keep galaxy-scale orbits stable; that scale is not a black hole’s size. Its mass is taken from the stellar mass budget, not added on top of the galaxy’s total. Custom builds can change that allocation or set it to zero.

No swallowing, tidal disruption, gas accretion, relativistic effects, gravitational waves or black-hole inspiral due to friction are calculated. The separate Black Hole Lab is an imagined close-up playground, not a zoom into these same trajectories.

Sources and model choices

Full scientific references & attributions ↗ (opens a new tab)

Small launch. Big gravity.

Black Hole Lab · Your galaxy encounter waits right where you left it.

TOP-DOWN ORBIT SKETCH0.00 days
Event horizon Model limit · 8 horizon radiiAU = Earth–Sun distance

An invented experiment, not a measurement of this galaxy’s black hole.

Changing mass starts a fresh experiment.

OutwardSidewaysInward

These three controls change your next launch, not stars already in flight.

Try a ready-made launch

A visual guide only. Not every black hole has a bright disk; gas physics is not simulated.

0 / 48 stars
Ready to launch.

Try a sideways launch. Can you keep your star going around instead of heading in?

Still flying
0
Close approaches
0
Escaped
0
Where our physics stops Curious minds, this way ↗

This is a Newtonian orbit sketch around one fixed, non-spinning black hole. Stars are massless points, not intact stars: tidal stretching and disruption are not modeled. Near the center, Einstein’s relativity matters. We stop each path at eight event-horizon radii, our chosen model limit—not a physical wall or proof that the star was swallowed. Even outside that line, these paths are approximations.

The event horizon is the boundary beyond which light cannot escape. Its radius here is R = 2GM/c². The tiny central disk is drawn to scale; its outline and star dots are enhanced for visibility. Time is simulated orbital time, not what a distant observer’s telescope would see. No light bending, time dilation, gas dynamics, star collisions or black-hole mergers are calculated.

The black hole stays fixed. Changing its mass clears old launches; it does not alter your galaxy simulation. We keep at most 48 stars and short trails, replacing the oldest launch when full.

Full scientific references & attributions ↗ (opens a new tab)

Build your own sim.

GALAXY ONE

GALAXY TWO

We’ll set a starting distance and speed for this pair. After launch, use encounter settings to try a different orbit.

My saved galaxies

Saved in this browser on this device. Clearing browser data removes them.

Imports add galaxies without replacing yours. Identical builds are skipped.

LIVE MODEL PREVIEW
Spiral galaxy100,000 light-years wide800 billion solar masses

Build a galaxy.

Galaxy class
CompactColossal
FeatherweightHeavyweight

Left end = none. This mass comes from the galaxy’s stellar budget; it does not increase its total mass. Capped at 10% of that budget.

Old & goldenYoung & blue
Tiny coreGiant core
SlowVery fast
ClearDusty
Scientist Mode derived physical parameters

These values are constrained into a numerically usable educational model. Real galaxy mass profiles are inferred from observations and carry substantial uncertainty.

Gravity, not choreography.

Observed facts and model choices are different things.

Current preset

What is actually simulated

One or two moving analytic galaxy potentials, each combining a Hernquist-style dark-matter component with a softened stellar component. Thousands of massless stellar tracers respond to the modeled gravity using a fixed-step leapfrog integrator. In two-galaxy views, the centers follow mutual gravity plus an adjustable Chandrasekhar-style dynamical-friction approximation. Tidal bridges and tails arise from those forces rather than a keyframed animation.

astar = −∇ (Σ Φgalaxy + Σ Φblack hole)
Φhalo = −GM / (r + a)   ·   Φstellar / black hole = −GM / √(r² + b²)

What the galaxy classes change

Spiral and lenticular presets begin with exponential stellar disks, ellipticals use a pressure-supported three-dimensional distribution, rings place young stars outside a central gap, and irregulars use lopsided stellar clumps. Those morphologies change how tracers are initialized; the live gravitational potential remains an intentionally simplified spherical approximation.

What this browser model leaves out

Sol marks an illustrative Milky Way arm location, attached to a model stellar tracer. It is a navigation landmark, not an accurately placed star or a prediction of the Sun’s future orbit. First entry from Earth or the Solar System starts at 1.5 million years per second; later visits retain your chosen Galaxy speed. Returning restores Earth’s last valid date and speed.

Real catalog inputs do not make every model parameter a measurement. Catalog-based galaxies use assumed halos and appearance; estimated black-hole masses are not detections. The optional real-star sky is a fixed J2000 Earth-view reference with stylized brightness and an illustrative Milky Way band, not the evolving sky seen from an external galaxy. Data credits, adaptations and licenses are listed below.

The timeline keeps growing past its initial range. Later epochs continue the same simplified gravity model, not a forecast of the universe: stars do not age or form, and space does not expand here. Space facts describe real astronomy; “What if?” cards are invitations to imagine or experiment, not predictions. Old trajectory snapshots are discarded to bound memory; revisiting an older epoch recalculates it.

No live self-gravitating dark-matter halos, stellar self-gravity, gas hydrodynamics, star formation, black-hole evolution, cosmological expansion, dust radiative transfer or uncertainty ensemble. Dynamical friction is approximate. Late merger remnants and custom galaxies are illustrative, not predictions of detailed morphology.

Particle colors and point sizes are enhanced for visibility. The wide-separation display option can enlarge stellar disks without changing forces, center separation or time. If the 3D renderer or WebGL is unavailable, a lower-detail Canvas renderer shows the same precomputed three-dimensional trajectories.

Black holes inside the galaxy simulation

Each included central black hole contributes a softened gravitational field to the stellar trajectories. Its mass is allocated from the galaxy’s stellar budget, preserving the total mass. Black holes follow their host centers until galaxy core coalescence, then remain distinct moving masses in the remnant; core coalescence is not a black-hole merger. Their symbols are enlarged location markers, not rendered event horizons. Open “Black holes” beside the scale legend for masses, model limits and sources.

A separate Black Hole Lab

Open Black Hole Lab in Explore galaxies to launch point tracers around an imagined central black hole. It uses its own time and distance scales and pauses the galaxy view. Newtonian orbits stop at a chosen model limit of eight event-horizon radii; reaching that line does not establish capture. The lab never changes this simulation’s black holes or replays its stellar trajectories. Its model notes and NASA sources are available inside the lab.

Imagined by Atticus James Asher Williams.

Designed and architected by Brandon Tyler Williams · GitHub ↗.

Home base: Earth · Orion Arm · Milky Way Galaxy.

AI assistance

Created with assistance from OpenAI’s Codex, affectionately called “Sir Astra,” and Qwen 3.8 Flash. These tools assisted during development; they are not scientific sources or independent validators. Model choices and any mistakes in this project remain our responsibility. Scientific credit belongs to the researchers and data creators cited below.

Attributions & scientific sources

Original observations belong to their researchers and data creators. Our adaptations and assumptions are identified separately.

Sources for this simulation

Global datasets, adaptations & software credits

Galaxy directory · 50 Mpc Galaxy Catalog

Credit: David Ohlson (davidohlson), Anil C. Seth, Elena Gallo, Vivienne F. Baldassare and Jenny E. Greene.

We adapt a selected subset of 50MGC, not the complete survey. Published distances, apparent sizes, stellar masses and broad morphology inform our models. Diameter is derived from distance and apparent size; halo mass, internal structure, spin, dust and appearance are educational assumptions. Pairings are imaginary. The catalog paper credits its contributing surveys and original measurements.

Adaptation & source version

501 imported galaxy models, alongside 6 curated models. Size is derived from apparent diameter and distance; stellar mass is not total or halo mass.

Pinned 50MGC FITS source ↗

Source revision: eb23288a37fa2fead42362ae9d3f29cf9150e3c0
Source SHA-256: 3e90a1a326ba95bd785280b7a4064d821bc8d7556e621cff8945255fde05bc53

Real-star sky · HYG v4.1

Credit: David Nash / Astronomy Nexus. HYG brings together the Hipparcos, Yale Bright Star and Gliese catalogs. Our reduced adaptation retains HYG IDs, J2000 directions, visual magnitudes and B−V colors for stars of magnitude 6.5 or brighter, excluding the Sun; missing colors receive a neutral value.

The adapted star data remains licensed under Creative Commons Attribution-ShareAlike 4.0, separate from the application’s code license. Positions stay fixed at J2000. Colors, brightness and point sizes are stylized; the faint Milky Way band is our procedural illustration, not survey imagery. This is an Earth-view reference sky, not a view from the simulated galaxies.

Adaptation & source version

8,920 stars. Adaptation: brightness selection, Sun exclusion, retained ID/direction/magnitude/color fields and a neutral fallback for missing colors. No positions are randomly generated.

Pinned HYG v4.1 CSV source ↗

Source revision: c7f7f883fe678cc7680169a50ccd7dcc49b060ce
Source SHA-256: d9f69fd86bbf90a4e4d52b4c5c53eacfa6dfc0bfdef85bfd94f095e0bebe4ebd

Estimated central black-hole masses

Credit: Amy E. Reines and Marta Volonteri (2015), Relations Between Central Black Hole Mass and Total Galaxy Stellar Mass in the Local Universe. Imported models use their local active-galaxy stellar-mass relation. Assuming every imported galaxy hosts a black hole and applying this fit across morphologies are sandbox choices—not detections, individual measurements or a universal law. Curated presets keep their separately cited masses.

Space stories and astronomy news

NASA, NASA Space Place, NASA/Hubble, NASA/Webb, ESA/Hubble and ESA/Webb provide the educational references linked from individual stories. Live headlines link to the original NASA articles and their author, mission and image credits. “What if?” prompts are our imaginative questions, not predictions from those sources.

Software and visual work

Babylon.js is created by the Babylon.js contributors and is licensed under Apache 2.0. Milkdromeda’s application code is MIT licensed. Our galaxy illustrations and procedural visuals are not telescope images; the former NASA panorama is no longer used. This project is not affiliated with Universe Sandbox and uses none of its assets.

Credit does not imply endorsement. Referenced publications and linked media retain their respective rights; the app’s code license does not relicense third-party data or media.

Full attributions: all presets, physics, stories & credits ↗ (opens a new tab)

Gravity, up close.

Loading Babylon.js… The Canvas view stays available while we connect.

Trails trace actual modeled stars, not decorative particles. They build as simulation time advances and follow the timeline when you rewind. The rings are illustrative locators, not resolved event horizons or simulated accretion disks.

Black-hole gravity is included, but softened at galaxy-scale resolution. Tight nuclear orbits, gas feeding, star swallowing and light bending are not modeled. A different renderer does not change those limits.

Build, save and remix your own galaxies in Explore galaxies → Build your own sim. Your builds stay in this browser.