interpolating spline curve


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
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.