----- Original Message -----
From: "Cromwell Enage" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>

>      I'm also trying to perform rotations about any
> axis, and when I tried that method I found that it
> worked only on axes that ran through the origin.  Is
> there something else I need to do so that I can
> perform rotations about axes that do not run through
> the origin?

The rotation axis of the RotationInterpolator passes through the origin of
the target TransformGroup and lies along its y-axis.  The spin direction
follows the righthand rule.  (Loooking down the y-axis and seeing the z-axis
to the right and the x-axis up, the rotation looks counterclockwise)

To set it up, you:

1. Place a TransformGroup on the spin axis,
2. Specify a (rotation only) Transform3D that tilts the y-axis into the
direction of the spin axis
3. Use the RotationInterpolator's constructor to (among other things):
  a. Reference the origin TransformGroup
  b. Reference the tilt Transform3D
4. Use the TransformGroup to root all of the scene graph objects that you
want to spin about that axis.

Hope this helps,

Fred Klingener
Brock Engineering

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