|
@@ -213,7 +213,7 @@ THREE.FirstPersonControls = function ( object, domElement ) {
|
|
|
|
|
|
this.lon += this.mouseX * actualLookSpeed;
|
|
this.lon += this.mouseX * actualLookSpeed;
|
|
if( this.lookVertical ) this.lat -=
|
|
if( this.lookVertical ) this.lat -=
|
|
- this.mouseY * actualLookSpeed * this.invertVertical?1:-1;
|
|
|
|
|
|
+ this.mouseY * actualLookSpeed * this.invertVertical?-1:1;
|
|
|
|
|
|
this.lat = Math.max( - 85, Math.min( 85, this.lat ) );
|
|
this.lat = Math.max( - 85, Math.min( 85, this.lat ) );
|
|
this.phi = ( 90 - this.lat ) * Math.PI / 180;
|
|
this.phi = ( 90 - this.lat ) * Math.PI / 180;
|