Physics Relativity Project Hail Mary Coriolis WebGL

Simulating the Hail Mary: Centrifugal Gravity & Relativistic Aberration at 0.92c


γ = 2.55 · Blueshift D(0°) = 4.90x · Headlight boost = 576.0x
Interactive WebGL2 & physics lab: switch between the relativistic Tau Ceti starfield (aberration + Planck Doppler shift) and the tethered centrifuge cabin (click anywhere inside the rotating ring to drop a test mass and watch the Coriolis curve).

After reviewing Project Hail Mary (2026), two physics set-pieces stayed stuck in my head: the 1.5g brachistochrone burn powered by Astrophage that accelerates the ship past $0.92c$ on its way to Tau Ceti, and the tethered centrifuge mode where the crew module separates from the fuel tanks and spins on cables to restore Earth gravity in orbit. Both look deceptively simple on screen, yet hiding underneath are two of the cleanest coordinate transformations in classical and relativistic mechanics.


1. Relativistic Aberration & the Forward Starbow

At $\beta = v/c = 0.92$, the Lorentz factor is $\gamma = (1 - \beta^2)^{-1/2} \approx 2.55$. Photons emitted by a star at rest-frame polar angle $\theta$ relative to the ship's velocity vector arrive at an apparent angle $\theta'$ compressed toward the nose of the ship:

Relativistic Aberration, Doppler Factor & Headlight Intensity
$$\cos\theta' = \frac{\cos\theta + \beta}{1 + \beta\cos\theta}, \qquad D(\theta') = \frac{1}{\gamma(1 - \beta\cos\theta')}, \qquad I'_{\text{bol}} = D^4 I_{\text{bol}}$$

Every star ahead of the ship is both pulled forward into a tight cone and blueshifted by $D(0) = \sqrt{(1+\beta)/(1-\beta)} \approx 4.9\times$ at $\beta = 0.92$. A yellow G-type star ($T \approx 5800\,\text{K}$) directly ahead shifts to an effective blackbody temperature of $T' = D \cdot T \approx 28{,}400\,\text{K}$ (searing ultraviolet-blue), while stars behind the ship redshift toward deep infrared and dim by $D^4 \approx 0.0017\times$.

2. Rotating Tether Centrifuge & Coriolis Deflection

Once in orbit around Tau Ceti, the Hail Mary splits along a tether of radius $R \approx 50\,\text{m}$ and spins at angular velocity $\omega = \sqrt{g / R} \approx 0.443\,\text{rad/s}$ ($\approx 4.2\,\text{RPM}$). Inside the rotating cabin frame, a dropped wrench obeys the non-inertial equation of motion:

Equation of Motion in the Rotating Cabin Frame
$$\ddot{\mathbf{r}} = -\underbrace{\boldsymbol{\omega} \times (\boldsymbol{\omega} \times \mathbf{r})}_{\text{centrifugal } (+\omega^2 \mathbf{r})} - \underbrace{2\boldsymbol{\omega} \times \dot{\mathbf{r}}}_{\text{Coriolis deflection}}$$

Drop a pen from height $h = 2\,\text{m}$ above the deck and it does not hit the floor directly below your hand. Because the pen starts at a smaller radius $R - h$ with lower tangential speed $\omega(R - h)$, it lags behind the faster-moving deck below it – deflecting anti-spinward by $\Delta s \approx \frac{2}{3}\omega \sqrt{2 h^3 / g} \approx 37.7\,\text{cm}$! Toggle to Spin-Gravity Centrifuge above and click inside the ring to verify the curve against the straight inertial trajectory.

💻 GLSL: Relativistic Starfield Aberration & Blackbody Doppler ShiftGLSL (WebGL2)
// Fragment shader core: Relativistic Starfield Aberration + Blackbody Shift
vec3 blackbodyRGB(float T) {
    T = clamp(T, 1200.0, 35000.0) / 1000.0;
    float r = (T <= 6.6) ? 1.0 : clamp(1.292936 * pow(T - 6.0, -0.133204), 0.0, 1.0);
    float g = (T <= 6.6) ? clamp(0.390081 * log(T) - 0.631841, 0.0, 1.0)
                         : clamp(1.129891 * pow(T - 6.0, -0.075514), 0.0, 1.0);
    float b = (T >= 6.6) ? 1.0 : ((T <= 1.9) ? 0.0 : clamp(0.543206 * log(T - 1.0) - 1.196254, 0.0, 1.0));
    return vec3(r, g, b);
}

// Invert aberration to find rest-frame direction from ship-frame view ray
float cosThPrime = normalize(rayDir).z;
float cosTh = (cosThPrime - uBeta) / (1.0 - uBeta * cosThPrime);
float gamma = inversesqrt(max(1e-5, 1.0 - uBeta * uBeta));
float doppler = 1.0 / (gamma * (1.0 - uBeta * cosThPrime));
Brachistochrone Fuel Budget Reality Check: A constant $1.5g$ flip-and-burn trip to Tau Ceti ($11.9\,\text{ly}$) takes only $\sim 3.9\,\text{years}$ of ship proper time ($\sim 13.1\,\text{years}$ Earth time). Even at a peak speed of $\beta \approx 0.985$ ($\gamma \approx 5.8$), the relativistic photon-rocket equation gives $m_0/m_f = \exp(\eta) = \sqrt{\frac{1+\beta}{1-\beta}} \approx 11.5$ per burn leg, or $\frac{1+\beta}{1-\beta} \approx 132$ for a one-way flip-and-burn – requiring a total mass ratio of $\sim 17{,}500$ for a full round trip, which is why Andy Weir needed mass-energy conversion via Astrophage.
Flight RegimeShip Speed $\beta$Lorentz $\gamma$Forward Doppler $D(0^\circ)$Visual Effect
Earth Departure0.00c1.001.00×Normal sky, isotropic star distribution
Mid-Cruise0.75c1.512.65×Forward stars crowd inward and turn ice-blue
Peak Pre-Flip0.92c2.554.90×Starbow ring forms; aft sky fades to deep red
Relativistic Limit0.98c5.039.95×Optical stars pushed to UV; IR background enters visible