Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138134

Three.js Camera z rotation keeps flipping

$
0
0

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


Viewing all articles
Browse latest Browse all 138134

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>