The plane of rotation of the camera

Yes. We fixed this issue using gimbal lock and quaternion. It required advanced software and massive calculations.