interpolating spline curve

Oct 30, 2013 at 11:25pm
Hello,


Does anyone have any suggestions to create an interpolating spline curve. I'm trying to develop a game in opengl and I can't get the objects to follow a curve. The function should go something like.....

void interpolatePath(Vec3d startPos, Vec3d targetPos, float u, Vec3d &interpPos)

Thank you
Oct 31, 2013 at 12:23pm
Well, you can interpolate it with cubic spline, which is not too complicated.

Though perhaps you may found it even easier to implement Bezier curve.
Topic archived. No new replies allowed.