Eric Arnold wrote:
> I have a (hopefully) simple question... how do you rotate an object in
> multiple directions? I tried just using the rotY() and rotX() methods
> separately, but then only one of them actually takes effect. Thanks for the
> help
> Eric
>
> ===========================================================================
> 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".
yes, the last one override the others.
You can make different transforms and multiply them - then you get the effect
of all rotations -like this:
Transform3D rx = new Transform3d();
Transform3D ry = new Transform3d();
rx.rotX(Math.PI/2);
ry.rotY(Math.PI/2);
rx.mul(ry);
now rx is the combined rotation.
cheers Hardy
===========================================================================
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".