Recommended Posts

I have struggled with quaternions for quiet som time now, using quaternions for rotating my "camera".
My problem is that after some time the camera goes faster and faster. Can you point out where my fail is?

And another question which for me is more important then the first is if this equation just transforms quaternions to axis/angle rotations or has it a deeper meaning?
rotate.x = x * sin(angle/2);
rotate.y = y * sin(angle/2);
rotate.z = z * sin(angle/2);
rotate.w = cos(angle/2);
[edited by - 1mol on March 26, 2004 2:41:03 PM]