Original Post
Hello!!!,I have a new problem. I want do a free camera.To avoid the gimbal lock I thinked do it with quaternions the I did the next code: -------------------------------------------------- void FreeCamera::Yaw(float units) { Quaternion q1 = camera->GetOrientation(); Quaternion q2 = Quaternion::FromAxisRotation(units,Vector3(0,1,0)); q1 = q1*q2; camera->SetOrientation(q1); }; -------------------------------------------------- My Question is: If I have a quaternion with the camara rotation and I multiply this by a quaternion rotated by a angle from a axis,then the result of multiply the first by the second is as increment the rotation,it isn´t? If it is,why I have rare effects?,The camera rotate,but when I ´m in certain angle,the camera begin to rotate in another axis. Which is the problem???Somebody can explain me and give the solution. Very Thanks.