To change the axis of rotation you need to define the 'axisOfRotation'
parameter in the constructor. The axisOfRotation is the local coordinate
system on the rotation is done.

Example to rotate about the Z-Axis:

Transform3D axis = new Transform3D();
axis.rotX(Math.PI / 2.0);  // this converts the y-axis in the z-axis.
axis.setTranslation(new Vector3f(x, y, z)); // x, y, z are the position
of your object.

I hope this helps.
bye.


----------------------------------------------------------------------------------------Daniel
del Rio.
Computer Engineer
Author Anima3d, a 3D animation studio.
http://www.terra.es/personal/dani_rio/
----------------------------------------------------------------------------------------

Tony Gill wrote:
>
> Can anybody help?
>
> I want to rotate an object about it's local z-axis and
> keep the object in its current location.
>
> At the moment the object rotates about its local
> y-axis and when it begins to rotate it moves to the
> centre of the screen (I want it to maintain its
> position).
>
> I am currently using a RotationInterpolator object to
> to do this. How do I:
>          a) change the axis of rotation to the local
> z-axis &
>          b) maintain the current position of the
> object.
>
> Or is this not possible with a RotationInterpolator.
>
> Thanks
>
> Frank
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger - Talk while you surf!  It's FREE.
> http://im.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".

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