Workshop · Orbits 01 & 04 · Astrodynamics & Zero-Glue Native Graphics

Titan as Cassini's Engine — and Zero-Glue 3D Rendering in Compiled Titan

Hyperbolic gravity-assist kinematics proving why 127 Titan flybys replaced dozens of main-engine burns, paired with a 6-module playable 3D Saturn–Titan showcase written in Titan against SDL3 and Cairo with zero custom C glue.

T70 Flyby: 857.1 m/s (1.37× SOI) Graphics Stack: Titan FFI + SDL3 + Cairo Custom C Shims: 0 lines

1. Why Geometry Beats Propellant (127 Close Flybys)

Titan's 5,150 km diameter makes it larger than Mercury and massive enough (μTitan = 8,978.14 km3 s−2) to serve as Cassini's real propulsion system. For a hyperbolic flyby at closest-approach radius rp = RTitan + h and arrival excess speed v∞, the eccentricity is e = 1 + rpv∞2/μTitan, bending the trajectory by δ = 2 arcsin(1/e) and delivering a free Saturn-frame impulse Δv = 2v∞/e.

At 880 km altitude during T70, Titan deflected Cassini by 8.78° and delivered 857.1 m/s — 1.37× Cassini's entire 90-minute main-engine Saturn Orbit Insertion burn (626 m/s) — without expending a drop of hydrazine.

Titan Gravity-Assist Δv vs. Closest-Approach Altitude (v_∞ = 5.83 km/s) 0 200 400 600 800 1000 Cassini 90-min SOI main-engine burn = 626 m/s T70 (880 km): 857 m/s T16 (950 km): 799 m/s T126 (979 km): 807 m/s TA (1,174 km): 741 m/s 1,000 km 2,000 km 3,000 km 4,000 km 5,000 km Saturn-frame Δv (m/s)
Figure 1 · Hyperbolic Deflection Δv vs. Closest-Approach Altitude. Computed by flyby.titan. Every close targeted pass below ~1,750 km outperformed the spacecraft's 90-minute arrival engine burn.
Pass Date Alt (km) v∞ Turn Δv (m/s) vs. SOI Mission Milestone
TA2004-10-261,174.06.077.00°741.01.18×First close targeted flyby
T162006-07-22950.05.957.70°798.71.28×First northern hydrocarbon lakes radar pass
T702010-06-21880.05.608.78°857.11.37×Deepest atmospheric skim (880 km)
T1262017-04-22979.05.837.93°806.71.29×Last close pass; vault into Grand Finale
T-1272017-09-11119,049.05.800.25°25.40.04×Distant goodbye kiss into Saturn

2. Cassini: Grand Tour — Compiler-Enforced Thin FFI Against SDL3 & Cairo

To stress-test how thin foreign boundaries feel in practice, I built a 6-module interactive 3D gravity-assist simulator (math3d, sim, scene, hud, gfx, main) linked straight against <SDL3/SDL.h> and <cairo/cairo.h> with zero C wrapper files. Titan owns the Velocity Verlet Saturn + J2 + Titan physics, perspective projection, oblate Saturn cloud-band shading, 10-band analytical ring shadows, detached Titan haze halo, painter's sort, and HUD.

Only gfx.titan imports C headers. Titan's type system enforces the boundary automatically: trying to export a header-defined C pointer on a public record fails at compile time, keeping C handles strictly in module-private local fields with gc.finalizable teardown backup while the other five modules stay 100% portable, header-free Titan.

Pure-Titan SDL3 3D render of golden-amber Titan with pale-blue detached haze crossing in front of oblate Saturn and edge-on rings
Plate 1 · Homage to Cassini PIA14909 (Titan Up Front). Rendered purely by compiled Titan via batched SDL_RenderGeometry and exported with Cairo: golden-amber tholin Titan wrapped in its detached pale-blue upper haze (PIA06122) crossing oblate banded Saturn and its edge-on ring plane.
System overview showing oblate Saturn, 10-band rings with Cassini Division and analytical umbra shadow, Titan, and HUD telemetry
Plate 2 · Saturn System Overview & Live Orbital Telemetry. Ten-band ring system (C ring, Colombo Gap + eccentric Titan Ringlet, B ring, Cassini Division, A ring, Encke Gap) with analytical Saturn umbra shadow and non-spoiling flown-only trajectory tracking.
Close camera following Cassini spacecraft during an active retrograde thruster burn approaching Saturn
Plate 3 · Active Retrograde Burn. Interactive 60 FPS spacecraft control with live thruster plume, propellant telemetry, 1×–8× time warp, and modal Flight Manual overlay.