I have recently come across THREE.js and I am absolutely mesmerized by its capabilities. Although I am not yet at an advanced level to code on my own, I have been searching for examples that align with my requirements but so far, I haven't found one that fits the bill.
The issue I'm facing involves moving an object using the mouse. While the X axis functions perfectly, the Y axis seems to rotate around the object instead of tilting it left and right.
Below is my current code snippet:
(insert your code here)
I am aiming to achieve a tilt effect when the mouse is moved left or right, without changing the "X" rotation unless there is vertical movement as well. Currently, the camera appears to rotate around the object rather than tilt in the desired direction.
Any suggestions or solutions would be greatly appreciated!