Hi, I wonder if someone can guide me with this.

I have a ball object which I want to rotate about it's
x-axis (simulating back-spin).

I am using the RotPosPathInterpolator which has the
correspoding quats to simulate the spin upon its
target TransformGroup.

The target TG is set with a Transform3D.

The rpi transform3D in an empty constructor.

The problem I am having is that when the ball moves
and spins about the x-axis I need to be perpendicular
to the direction it is travelling in.

When I rotated the target TG to face the direction it
is supposed to travel in, the TG's cordinate system
was also rotated so that the bounds of my billiard
table (a seperate TG) no longer take effect, as they
are now un-aligned.

I have tried various rotations of the TG's, including
some experiments with AxisAngle4f.

If someone can help, it would be very much
appreciated.

-Greg

ps: The following snippets of code show how the ball's
TG and the rpi is being instantiated:

ball TG:

Transform3D sphereT3D = new Transform3D();
 sphereT3D.setTranslation( position );

TransformGroup sphereTG = new TransformGroup
(sphereT3D );
 sphereTG.addChild( createSphere( canvas, imageName )
);

rpi:
RotPosPathInterpolator(alpha, target,new
Transform3D(), knots, quats, positions );


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to