Currently I have a project in which I am using three.js to rotate a 3d object around a sphere with quaternions. I am trying to have to camera automatically follow the object that is rotating so that it can give a top down view of the object that is rolling around. What is happening is that whenever the z position of the camera reaches zero, the z rotation of the camera changes from say a 0 radian angle to a -3.1415926.... angle. If I turn the orbit that the object is rolling on , this flip becomes more of a spin but it still happens
↧