Moving an object over a surface?

Hi,

I am in need of desperate help with a java3d program.

I have a 3d bspline surface with a parametric curve running along it. How do I get an object (cube) to follow that path along this bspline surface.

I have to use a rotpospathinterpolator and I am assuming this would be enough to animate the object?

How do I get the parameters of the rotpospathinterpolator especially,

alpha

target - this is the object?

axisofRot

knots - I have x and y knot vectors (in a private void method) , so how would I get this to be a parameter of the interpolator?

quats

positions - would this be the control points or the curve path (again in a private void method)?

If anyone has any ideas, that would be great.

Thanks

Hey
The best place to find out how to use Path…Interpolator is java’s own tutorial. It takes care of everything. It shows you how to use every single paramter in that paticular class
here is the link to that tutorial

http://java.sun.com/products/java-media/3D/collateral/

go to chapter 5 and there find this class, I believe its sub chapter 5.2.7

Regards
Dust Worm