有没有办法在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();
}
}