threeJS-object-controls
threeJS-object-controls copied to clipboard
Turn off the controls
I wanted to be able to use a Raycaster to determine which mesh to move. And to be able to turn off the controls if the raycast intersects was empty. To do that, I added a bunch of tests for if (!mesh) return; and then I can use controls.setObjectToMove(undefined);
Sorry for being too lazy to do a pullreqest. There were six places at the start of the handler functions that I added it...