From: "Crossley, Allistair" <[EMAIL PROTECTED]>
Sent: Wednesday, May 23, 2001 12:19 PM
> Ok, so I have my object in the scene and I have tried to
rotate it like this
>
> // model transform
>
> Transform3D modelt3d = new Transform3D();
>
> Matrix3f rotation = new Matrix3f();
> rotation.rotY(200);
>
> modelt3d.set(rotation);
> modelt3d.set(new Vector3f(0.0f, 0.0f, 0.0f));
set(Vector3d) - Method in class javax.media.j3d.Transform3D
Sets the translational value of this matrix to the Vector3d
paramter values, and sets the other components of the matrix as
if this transform were an identity matrix.
So the second set() is wiping out the rotation. Try
setTranslation(Vector3f) instead.
Cheers,
Fred
===========================================================================
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".