threeJS-object-controls icon indicating copy to clipboard operation
threeJS-object-controls copied to clipboard

Turn off the controls

Open danzen opened this issue 1 year ago • 0 comments

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...

image

danzen avatar Jan 15 '24 04:01 danzen