Relativity Simulator
Accelerate to near-lightspeed and watch time dilate
Interactive special relativity simulator. Adjust velocity and observe time dilation, gravitational lensing, and relativistic effects at up to 0.999999c. Drag the velocity slider toward lightspeed and watch Earth time and ship time diverge — with rainbow aberration, warp bloom, and a flashing event-horizon warning at 0.99c.
Special RelativityTime DilationLorentz FactorRelativistic AberrationLength Contraction
1.Special Relativity — Einstein's 1905 Revolution
Einstein's Special Theory of Relativity rests on two postulates: the laws of physics are identical in all inertial reference frames, and the speed of light c is constant for all observers regardless of their motion. These simple postulates shatter Newtonian intuitions about absolute time and space. As an object accelerates toward c, time slows, lengths contract along the direction of travel, and mass increases — not because of any physical force, but because of the geometry of spacetime itself.
2.Time Dilation — t = t₀/γ
The faster you move, the slower your clock ticks relative to a stationary observer. This is not a mechanical effect but a fundamental property of spacetime. The time dilation formula is t_ship = t_earth / γ, where γ (gamma, the Lorentz factor) equals 1/√(1 - v²/c²). At 0.9c, γ ≈ 2.3 — your clock runs at less than half the rate of Earth's. At 0.999c, γ ≈ 22. At 0.9999999c, γ exceeds 2,000. The two counters in the HUD show this divergence in real time: Earth time accumulates normally while ship time slows proportionally.
3.Lorentz Factor γ — The Relativistic Scale
The Lorentz factor γ = 1/√(1 - v²/c²) governs all relativistic effects simultaneously — time dilation, length contraction, and relativistic mass increase. At low velocities, γ ≈ 1 and relativistic effects are negligible (a plane flying at 900 km/h has γ = 1.0000000000004). As v approaches c, γ diverges to infinity — meaning it would take infinite energy to accelerate any massive object to exactly c. This is why c is an absolute speed limit for matter: not an engineering constraint, but a geometrical one baked into spacetime.
4.Relativistic Aberration and the Searchlight Effect
At relativistic speeds, the apparent positions of stars shift toward the direction of travel — a phenomenon called relativistic aberration. Stars that were spread across the sky compress into a bright cone ahead of the ship. Combined with the Doppler effect (forward stars blueshifting, rear stars redshifting), the visual experience is dramatic. The simulation renders this: at high velocities, stars stream toward you with elongated trails, and at extreme speeds (v > 0.98c), spectral colors shift into the rainbow as relativistic Doppler compression exceeds visible-light wavelengths.
5.The Twin Paradox and Real-World Confirmation
The most famous consequence of time dilation is the Twin Paradox: an astronaut who travels to a distant star at near-c and returns will have aged less than their twin who stayed home. This is not a paradox — the asymmetry is real. The traveling twin actually ages less. Atomic clock experiments such as Hafele-Keating (1971) confirmed relativistic clock shifts: clocks flown eastward lost time relative to the ground, while clocks flown westward gained time, matching the competing effects of speed and gravity. GPS satellites orbit at about 14,000 km/h and require daily relativistic corrections — otherwise navigation errors would grow to kilometers per day.