I'm still getting the hang of three.js so please bear with me if this question seems a bit basic.
My current challenge involves rotating a camera using the arrow keys. While the left and right (yaw) rotation works as expected, I'm encountering issues with the up and down (pitch) rotation when the angle is not at 0. From my research, I found that the problem lies in how three.js handles Euler angles with a specific order (YXZ). Despite my attempts like:
camera.rotation.y = AngleY;
camera.rotation.x = AngleX;
camera.rotation.z = AngleZ;
I also experimented with vectors and camera.target.lookAt, but it seems camera.target has been removed, leaving me unsure of how to proceed.
Your insights would be greatly appreciated. Thank you.