Home▸Build & Play▸Marble Momentum Race Simulation (2D)

🧪 Marble Momentum Race Simulation (2D)

A top-down Canvas2D marble run: marbles accelerate downhill along a hand-drawn switchback track based on local slope, lose speed to rolling friction, and weave side to side as they race to the finish.

Build & Play2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-marble-momentum-race-simulation ↗ Open standalone
⚙ Under the hood

Each marble samples the local slope of a catmull-rom switchback path to accelerate downhill, applies rolling friction, and offsets sideways with a sine-wave weave — the same momentum model as the 3D version, drawn in plan view on a 2D canvas.

Marble MomentumGravity EffectsTrajectory Simulation

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)