Hi
Thanks
:-))
-----Original Message-----
From: David Hall� [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, January 11, 2000 4:44 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] rotX and rotY
>If you multiply seperate rotations, the second rotation will use the
>resulting object of the first rotation.
>If however you want to do several rotations at once, e.g. roll/pitch/yaw for
>an aircraft, you should use the
>Transform3D.setEuler(Vector3d) method.
I use the roll/pitch/yaw for an aircraft (ie. a transformgroup) like this:
// T is the current Transform3D for my TransformGroup
public void rotate(double[] rotationAngles) {
Transform3D temp = new Transform3D();
temp.rotY(rotationAngles[0]);
T.mul(temp);
temp.rotZ(rotationAngles[1]);
T.mul(temp);
temp.rotX(rotationAngles[2]);
T.mul(temp);
setTransform(T);
}
David.
<< File: ATT00000.htm >>
�������������������������o 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".