Skip to content

bentford/CardinalSpline

Repository files navigation

Cardinal Spline:

Purpose:

To illustrate how to interpolate a Catmull-Rom spline and how the spline is useful in game development. It will also show how Bezier splines are not cardinal, and do not pass through their control points.

Cardinal splines can be used for paths for AI or sprites to move along.

About:

After seeing how simple cubic bezier spline interpolation was, I finally understood the math behind Catmull-Rom.

I found the Catmull-Rom equation here.

Coming Soon:

  • Draw Bezier splines to show that they don't pass through their control points.
  • Interpolate a series of points for both splines

About

Illustrates how to work with Catmull-Rom splines

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published