Hot answers tagged rotation
Quaternions can't suffer from gimbal lock; they are functionally identical to full matrix multiplations. However, the angles you use to generate them can be wrong. The problem is that you are generating your rotations around fixed angles, in your case Cartesian unit vectors. You can't do that; your rotation axes must rotate along with everything else. ...
Only top voted, non community-wiki answers of a minimum length are eligible