浏览代码

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

kyle shay 13 年之前
父节点
当前提交
a3877f4e7a
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 			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;