|
@@ -60,9 +60,10 @@ THREE.OrbitControls = function ( object, domElement ) {
|
|
this.autoRotateSpeed = 2.0; // 30 seconds per round when fps is 60
|
|
this.autoRotateSpeed = 2.0; // 30 seconds per round when fps is 60
|
|
|
|
|
|
// How far you can orbit vertically, upper and lower limits.
|
|
// 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
|
|
|
|
|
|
+ // Range is 0.01 to Math.PI-0.01 radians, which is sufficient to avoid
|
|
|
|
+ // noticable gimbal lock.
|
|
|
|
+ this.minPolarAngle = 0.01; // radians
|
|
|
|
+ this.maxPolarAngle = Math.PI - 0.01; // radians
|
|
|
|
|
|
// Set to true to disable use of the keys
|
|
// Set to true to disable use of the keys
|
|
this.noKeys = false;
|
|
this.noKeys = false;
|