three.js 可以自己改吗
发布网友
发布时间:2022-05-01 19:18
我来回答
共1个回答
热心网友
时间:2022-06-21 19:29
Three.js实战--修改OrbitControls的按键
blog.csdn.net 2017年08月22日 19:46
function onMouseDown( event ) { if ( scope.enabled === false ) return; event.preventDefault(); switch ( event.button ) { case scope.mouseButtons.ORBIT: if ( scope.enableRotate === false ) retur
handleMouseDownRotate( event )
tate = STATE.ROTATE; break; case scope.mouseButtons.ZOOM: if ( scope.enableZoom === false ) retur
handleMouseDownDolly( event )
tate = STATE.DOLLY; break; case scope.mouseButtons.PAN: if ( scope.enablePan === false ) retur
handleMouseDownPan( event )
tate = STATE.PAN; break; } if ( state !== STATE.NONE ) { document.addEventListener( 'mousemove', onMouseMove, false ); document.addEventListener( 'mouseup', onMouseUp, false ); scope.dispatchEvent( startEvent ); } }