Skip to content
Illustrates how to work with Catmull-Rom splines
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CardinalSpline.xcodeproj
CardinalSpline
.gitignore
Default.png
HelpIcon.png
HelpIcon@2x.png
README.markdown

README.markdown

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
You can’t perform that action at this time.