有没有办法在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();
}
}发布于 2013-01-07 23:48:05
是。
controls.enabled = false;https://stackoverflow.com/questions/14188819
复制相似问题