Cosmic orbit lab · C11 physics · real WASM

Discover the solar system in motion.

An illustrated cosmic cockpit wrapped around the real C/raylib simulator. The worlds stay bright and friendly; the physics underneath stays SI units, tests, and source files.

C11 physics corevelocity-Verlet / kick-drift-kickSI units: m, kg, s, m/s8 modeled bodiesillustrated map, real state

Solar playground

Illustrated map, SI physics
An illustrated map, not a scale poster: visible orbits and source notes keep the physics/rendering boundary inspectable.
Catalog8 implemented bodies
Integratorvelocity-Verlet / kick-drift-kick
UnitsSI units: m, kg, s, m/s
RuntimeNative C loop plus Emscripten callback loop
ControlsTab/C focus, V scale mode, mouse-wheel zoom
ArtifactsHTML, JS, WASM checked before Pages deploy

Core principle

Friendly planets, serious gravity.

The site now behaves like an illustrated science-club cockpit. Color and friendly geometry make the simulator approachable, while every claim still points back to meters, kilograms, seconds, vectors, acceleration, and tests.

WASM lab

Open the simulator in its own runtime page.

The homepage no longer nests a full browser page inside another page. It now hands off to the dedicated WebAssembly cockpit, where the live canvas, controls, and renderer notes have enough room to breathe.

Runtime pageLive C/raylib canvasStatic notes outside the rendererControls next to the artifactBuild proof in docs
Dedicated WASM cockpitOpen runtime page

HTML + JS + WASM

One page for the live loop, one page for the story.

Use the standalone page when you want the real simulator. Use the homepage as the source-backed map that explains what the canvas is showing.

8 bodiesSI units: m, kg, s, m/svelocity-Verlet / kick-drift-kickFull-run trails
Launch WASM cockpit

Physics engine

Reality lives in src/sim

a = G * source_mass / distance^3 * displacement

Double-precision positions, velocities, masses, and radii stay in physical units. The math gets tests before it gets a smile.

Illustration layer

The renderer paints a readable map

Illustrative scale, readable moon spacing, labels, focus, and sampled trails are visual grammar, not physics mutations.

Trace the simulation core

Lab rules

Illustrated worlds, source-backed orbits, no fake capabilities.

Δt stays visibleMoons keep parentsScale is labeledTests guard orbit math

Planet field guide

Eight implemented bodies, drawn clearly and documented calmly.

Each implemented body carries identity and parent metadata so docs, renderer, labels, and tests talk about the same simulated object.

Field log

Precise, playful, unfinished in public.

Source references

Where the page gets its claims.