My angles are in radius already.
My problem is that if I rotate by X axis then by Y axis and then by Z axis I will have different model pose if I first rotate by Z axis then by Y axis and finally by X axis.
So below code give me diffrent result (model pose)
then this one:
right?
My problem is that if I rotate by X axis then by Y axis and then by Z axis I will have different model pose if I first rotate by Z axis then by Y axis and finally by X axis.
So below code give me diffrent result (model pose)
Code Select
obj3d..clearRotation();
obj3d.rotateX(measurements.pitch);
obj3d.rotateY(measurements.yaw);
obj3d.rotateZ(measurements.roll);
then this one:
Code Select
obj3d..clearRotation();
obj3d.rotateZ(measurements.roll);
obj3d.rotateY(measurements.yaw);
obj3d.rotateX(measurements.pitch);
right?