Explorar o código

invertVertical, now defaults to what currently exists.
false = up is up
true = down is up

kyle shay %!s(int64=13) %!d(string=hai) anos
pai
achega
a3877f4e7a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/extras/controls/FirstPersonControls.js

+ 1 - 1
src/extras/controls/FirstPersonControls.js

@@ -213,7 +213,7 @@ THREE.FirstPersonControls = function ( object, domElement ) {
 
 			this.lon += this.mouseX * actualLookSpeed;
 			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.phi = ( 90 - this.lat ) * Math.PI / 180;