Roller Coaster Physics: Energy-Conservation Track Simulator (2D)
2D side-view roller coaster: a closed Catmull-Rom track with a chain-lift climb, a big drop and a vertical loop, driven by real energy conservation — speed comes from trading potential energy for kinetic energy along the track height, friction bleeds the energy budget, and g-force is computed from track curvature.
This 2D companion runs the same energy-conservation physics as the 3D roller coaster through a plain side-view canvas: a Catmull-Rom spline traces the chain-lift climb, the big drop and a full vertical loop, the cart's speed is solved from potential-energy-to-kinetic-energy conversion along the track height (with a friction term draining the energy budget), and the live g-force reading combines centripetal force from the track's curvature with the gravity component along the track normal — the same formulas the 3D version uses, just watched from the side.
2D roller-coaster physics lab: a closed Catmull-Rom track with a chain-lift climb, a big drop and a vertical loop, driven by real energy conservation — speed comes from trading potential for kinetic energy along the track height, friction bleeds the energy budget, and g-force is computed from track curvature.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install
The physics clamps the minimum speed to 2.5 m/s so the ride keeps moving even where the friction model would otherwise let it stall — real coasters use the same design margin, sizing the lift hill so the cart always clears the next crest.
Two terms add together: the centripetal component v²/r from the track's local curvature radius, and the component of gravity along the track's normal direction. Both are recomputed every frame from the actual track geometry, not scripted.
It injects extra kinetic energy directly into the cart's speed, useful for testing how the ride behaves with more energy in the system — for example clearing the loop with room to spare.