Hi all !

There are the methods: rotX, rotY and rotZ, depending on what axis you want to rotate 
on.

Dani


hi tanju,
i am new, too, but i found the following:
consider the default  Transform3D is y axis, then rotate it 1/2 PI on x
axis and you'll get z axis Transform3D:

        ...
        Transform3D yAxis = new Transform3D();
        yAxis.rotX(Math.PI*0.5d);  //*
        ...
t.e. add line * to rotate on z axis.

niki


-----Original Message-----
From: Tanju Gurel [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 3:23 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Rotating ColorCube on x-axis or z-axis....


Hi,

I'm new at Java3D. In HelloUniverse.java example ColorCube rotates on
y-axis.
How can i rotate it on x-axis or z-axis.

Transform3D xAxis = new Transform3D();

Thanks.

tanju

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





--

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn 
Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, 
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das 
unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorised copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.

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