在OrbitControls.js中 有一个功能: function handleMouseMoveRotate(event){
//console.log( 'handleMouseMoveRotate' );
rotateEnd.set( event.clientX, event.clientY );
rotateDelta.subVectors( rotateEnd, rotateStart );
var element = scope.domElement === document ? scope.domElement.body : scope.domElement;
// rotating across whole screen goes 360 degrees around
rotateLeft( 2 * Math.PI * rotateDelta.x / element.clientWidth * scope.rotateSpeed );
// rotating up and down along whole screen attempts to go 360, but limited to 180
rotateUp( 2 * Math.PI * rotateDelta.y / element.clientHeight * scope.rotateSpeed );
rotateStart.copy( rotateEnd );
scope.update();
}
因此,当我想要上下旋转时,它只允许在0到180之间旋转天使,我怎样才能摆脱这种限制?这意味着,我想在没有0到180限制的情况下上下旋转任何天使。
非常感谢!