I am sharing the implementation of raycaster for the 3 axes in the “misc_controls_pointerlock” example on github. Maybe this can help someone. thanks!
Can you explain what this file does?
The only difference I can see between your example and the three.js one is that there’s a red dot in the middle of the screen in yours.
In the original example the object goes through the boxes and is set at a minimum height of 10.
in MyRaycaster.js, I tried to make it more generic and could even go up and down hills.
I added a mountain to better show the physics simulation of “PointerLockControls”