3 axes raycaster - misc_controls_pointerlock example

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!


1 Like

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.

1 Like

Hello Friend.
I added a mountain to better show the physics simulation of “PointerLockControls”