create a Transform3D with translation, and another one with rotation.
multiply the first Transfor3D with the second, and add the first to the TG:

eg.:

Transform3D translate = new Transform3D();
Transform3D rotate = new  Transform3D();
rotate.rotX ( <your angle> );
translate.translate ( <your vector> );
translate.mul( rotate );
TransformGroup tg = new TransformGroup( translate );

Tibor

> -----Original Message-----
> From: Allan Bredahl [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 12, 2000 8:31 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] Transform3D with both rotation and translation
>
>
> HI all
>
> I'm construction a simple behavior to move and rotate an object.
>
> My problem is that I want to both rotate and translate a
> TransformGroup.
>
> How is it possible to make one Transform3D do both rotation
> and translation,
> or is it possible to add more than one Transform3D to a TransformGroup
>
>
> thanks in advance
>
>
> Allan Bredahl
>
> ==============================================================
> =============
> 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