Thursday, 5 September 2013

CatmullRomSplines and other smooth paths

CatmullRomSplines and other smooth paths

I've been looking into getting an object on a two dimensional plane to
follow a smooth curve defined by several control points.From what I've
found, I'm looking for a Catmull-Rom-Spline.
I've been using LibGDX for my project, and it has its own
Catmull-Rom-Spline implementation but I'm having trouble wrapping my head
around how it works, as I've had trouble finding documentation or other
source code implementing Catmull-Rom-Splines using LibGDX.
I'm looking for either an explanation of the LibGDX Catmull-Rom-Spline
implementation or another way to implement a smooth path that implements
control points using Catmull-Rom-Splines or another method. All I'm
looking for is the ability to generate a path and pass back the x and y
coordinates of a point on that path. If anyone has any suggestions or
pointers, it would be appreciated. Thanks.

No comments:

Post a Comment