Hi all
utterly newbie question…
whats the difference between pitch(1) and rotationX++ ?
Thanks
Dan
pitch vs rotationXSoftware: Away3D 3.x |
||
danzis, Newbie
Posted: 14 July 2011 08:37 AM Total Posts: 1 Hi all utterly newbie question… whats the difference between pitch(1) and rotationX++ ? Thanks Dan |
||
Stephen Hopkins, Sr. Member
Posted: 15 July 2011 03:36 AM Total Posts: 110 [ # 1 ] Pitch rotates an object about its current local x axis. I think it helps to think of pitch/yaw/roll like an airplane, pitch(90) would turn the plane 90 degrees up (or down) from its previous direction. yaw(90) turns the plane left or right, relative to its forward direction. rotationX is the actual rotation of the object about the x axis. |
||
|
||
Stephen Hopkins, Sr. Member
Posted: 15 July 2011 09:18 PM Total Posts: 110 [ # 3 ] they are used for different purposes. Use pitch/yaw/roll, if you want the object to rotate around its current local axes. Personally, I don’t like using the euler angle rotations (rotationX,Y,Z). I use rotation matrices, quaternions, or the pitch/yaw/roll. I might be saying this wrong, but rotationX, is the rotation of the object about the x axis of the container its in. I don’t think this axis ever changes unless you transform the parent container object. |