Home▸Game Development▸Catmull-Rom Spline Camera Rail: Top View, Curvature Map and Speed Comparison (2D)

Catmull-Rom Spline Camera Rail: Top View, Curvature Map and Speed Comparison (2D)

A flat view of the same camera rail: the spline coloured by curvature, the control posts, both carts, a side elevation of the rail, and the speed and curvature plots. Same data and numerical checks as the 3D rail.

Game Development2DModerate60 FPS📱 Mobile-adapted🟠 Blender⇄ 3D version
Catmull-Rom Spline Camera Rail: Top View, Curvature Map and Speed Comparison (2D) ↗ Open standalone

Lay a closed camera rail through hand-placed posts with a Catmull-Rom spline and send two dolly carts along it. The orange cart advances the curve parameter at a steady rate, so it speeds up on long spans and slows on short ones; the teal cart uses an arc-length table and holds a constant speed. Change the knot exponent alpha between uniform, centripetal and chordal and see why clustered posts make uniform splines overshoot, read the curvature and tightest bend radius, and compare the speed curves. A Blender-built rail scene with independent numerical checks.

⚙ Under the hood

A flat view of the same camera rail: the spline coloured by curvature, the control posts, both carts, a side elevation of the rail, and the speed and curvature plots. Same data and numerical checks as the 3D rail.

Catmull-Rom SplineCamera RailArc LengthReparametrisationCurvatureKnot ParameterisationGame DevelopmentAnimation

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

What did you find?

Add reproduction steps (optional)