In my current VR game project using THREE.js, I am attempting to constrain the camera rotation on the y-axis within specific angles to prevent users from seeing behind them. Instead, they should only be able to look left and right. Although I am uncertain about how the coordinate system functions for the camera, a visual representation of my goal can be seen in this image:
https://i.sstatic.net/V0lxZ.png
Since the threeVR tool lacks max and min settings, I am manually trying to lock the camera's rotation within the `update` function of my program. Unfortunately, I am unsure of the correct approach to achieve this.