浏览代码

TransformControls: Fix eye vector computation. (#24583)

Michael Herzog 2 年之前
父节点
当前提交
2e3927428f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      examples/jsm/controls/TransformControls.js

+ 1 - 1
examples/jsm/controls/TransformControls.js

@@ -207,7 +207,7 @@ class TransformControls extends Object3D {
 
 
 		if ( this.camera.isOrthographicCamera ) {
 		if ( this.camera.isOrthographicCamera ) {
 
 
-			this.camera.getWorldDirection( this.eye );
+			this.camera.getWorldDirection( this.eye ).negate();
 
 
 		} else {
 		} else {