Allow proper rotation of objects in 3D space using quaternions.