I have a camera, and I want to specify the orientation of the camera through the lookat method. The result is that the orientation of the camera is correct, but its viewing frustum will rotate itself. Can I disable its own rotation?
I need the frustum to be able to rotate up and down or left and right with the target parameter passed in by lookat, but I don’t want to get the above rotation effect. I don’t need the head of the cone to rotate as the target changes. Is there any solution?
lookAt function will always rotate the camera (or any Object3D) so that the local top direction matches the objects’ respective up vector (by default it’s the world Y axis).
If you don’t want this to happen, you need to use quaternion property to specify rotation of an object.