// Set to false to disable this control
//鼠標控制是否可用
this.enabled = true;
// "target" sets the location of focus, where the object orbits around
//聚焦坐標
this.target = new THREE.Vector3();
// How far you can dolly in and out ( PerspectiveCamera only )
//最大最小相機移動距離(景深相機)
this.minDistance = 0;
this.maxDistance = Infinity;
// How far you can zoom in and out ( OrthographicCamera only )
//最大最小鼠標縮放大小(正交相機)
this.minZoom = 0;
this.maxZoom = Infinity;
// How far you can orbit vertically, upper and lower limits.
// Range is 0 to Math.PI radians.
//最大仰視角和俯視角
this.minPolarAngle = 0; // radians
this.maxPolarAngle = Math.PI; // radians
// How far you can orbit horizontally, upper and lower limits.
// If set, must be a sub-interval of the interval [ - Math.PI, Math.PI ].
//水平方向視角限制
this.minAzimuthAngle = - Infinity; // radians
this.maxAzimuthAngle = Infinity; // radians
// Set to true to enable damping (inertia)
// If damping is enabled, you must call controls.update() in your animation loop
//慣性滑動,滑動大小默認0.25
this.enableDamping = false;
this.dampingFactor = 0.25;
// This option actually enables dollying in and out; left as "zoom" for backwards compatibility.
// Set to false to disable zooming
//滾輪是否可控制zoom,zoom速度默認1
this.enableZoom = true;
this.zoomSpeed = 1.0;
// Set to false to disable rotating
//是否可旋轉,旋轉速度
this.enableRotate = true;
this.rotateSpeed = 1.0;
// Set to false to disable panning
//是否可平移,默認移動速度為7px
this.enablePan = true;
this.keyPanSpeed = 7.0; // pixels moved per arrow key push
// Set to true to automatically rotate around the target
// If auto-rotate is enabled, you must call controls.update() in your animation loop
//是否自動旋轉,自動旋轉速度。默認每秒30圈
this.autoRotate = false;
this.autoRotateSpeed = 2.0; // 30 seconds per round when fps is 60
// Set to false to disable use of the keys
//是否能使用鍵盤
this.enableKeys = true;
// The four arrow keys
//默認鍵盤控制上下左右的鍵
this.keys = { LEFT: 37, UP: 38, RIGHT: 39, BOTTOM: 40 };
// Mouse buttons
//鼠標點擊按鈕
this.mouseButtons = { ORBIT: THREE.MOUSE.LEFT, ZOOM: THREE.MOUSE.MIDDLE, PAN: THREE.MOUSE.RIGHT };