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.

Creating a link saves this scene on our server. Anyone with the link can read its galaxy names and settings—please don’t include personal information. Links have no automatic expiry or self-service delete. They recreate the model, not an image; framing varies with screen shape. The camera opens in manual mode so the shared angle stays put.

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

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

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.

Build your own sim.

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

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.

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

Sources for this preset

Implementation

Babylon.js · Apache-2.0-licensed renderer ↗

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.