Hi, there,

I need a help.

I found when use Java Transfoem3D�s method rotX, rotY
, rotZ or mouseRotate to rotate an object (a cube),
java actually move the user�s view (if we think the z
axis always points to users). In other words, if we
think the user�s view is fixed, i.e. user sits in
front of the screen, the coordinates X,Y, and Z axis
are moved.  The following code proves it: press button
X 9 times (rotate the cube 90 degree about X axis,
then press button Z, you will find z axis is now in
the place where -y axis used to be.

My question is, if I want to fix the coordinate,
(means let z axis always point to the user sitting in
front of the screen) how do I rotate the cube? How do
I implement this idea in java3D? I mean how to move
the cube, but not the viewPlatform. many thanks.

Best regards,

Jerry





__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Cube4.java

Reply via email to