2

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

1 回答 1

3

是的。

controls.enabled = false;
于 2013-01-07T15:48:05.123 回答