Camera on the rail chases the crate (ghost = exact solution)
Position vs time

Critically Damped Spring Camera Smoothing: Step Response and Stability (2D)

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.

Made with 🟠 Blender