Critically Damped Spring Camera Smoothing: Step Response and Stability (2D)
The same spring-damper camera in side view: a camera sprite follows a crate along a rail while the plot compares the frame-stepped path with the exact solution and the stability of each update rule.
A camera chases a target crate with a spring-damper. Change the natural frequency and damping ratio to see overshoot, peak time and settling time, then switch the per-frame update between an exact closed form, semi-implicit Euler and explicit Euler and watch the simple rules drift or blow up at low frame rates. A Blender-built rail, camera rig and crate, with numerical checks of the spring solution and its stability built in.
The same spring-damper camera in side view: a camera sprite follows a crate along a rail while the plot compares the frame-stepped path with the exact solution and the stability of each update rule.
2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install