rotationX,rotationY and rotationZ problem

Software: Away3D 4.x

Avatar
Cheng Liao, Administrator
Posted: 03 August 2011 04:11 PM   Total Posts: 116

why rotationX is counterclockwise ,but the rotationY and rotationZ are clockwise?

   

Avatar
theMightyAtom, Sr. Member
Posted: 04 August 2011 04:54 AM   Total Posts: 669   [ # 1 ]

Whether it’s clockwise or anti-clockwise depends upon your orientation, or in other words where you are looking from!
http://en.wikipedia.org/wiki/Right-hand_rule

Once you can see the result, is it not a question of writing a minus sign before your rotationX, to get it to function the way that’s logical to you?

myObj.rotationX = -(someNumber);
myObj.rotationY = someOtherNumber;
myObj.rotationZ = anotherNumber;

Good luck!

   

Avatar
David Lenaerts, Administrator
Posted: 05 August 2011 11:03 AM   Total Posts: 80   [ # 2 ]

Actually, they’re all counter-clockwise. You have to look in the direction of the coordinate system axes when judging the rotation direction (up for rotationY, into the screen for rotationZ, and towards the right for rotationX).

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X