2
트랙볼 컨트롤러를 three.js로 토글하는 방법이 있습니까?트랙볼 컨트롤러를 중지하려면 어떻게합니까? [three.js]
는 내 이벤트 핸들러
function onDocumentMouseMove(event){
if (CAN_MOVE == 1){
// update the mouse variable
mouse.x = (event.clientX/window.innerWidth) * 2 - 1;
mouse.y = - (event.clientY/window.innerHeight) * 2 + 1;
}
else
{
//do nothing
event.preventDefault();
}
}