I want to build a box out of planes with orbitControls inside of that box. The thing is that I don't want the camera to get outside of that box.
The source I already used is: https://sbcode.net/threejs/raycaster2/. This works well, but as well as in the example, you're able to clip through planes using panning (immediately pan downwards to see what I mean).
I don't want to disable panning, because this will contribute to the way a user interacts with the camera.
Thanks!