소스 검색

when the trnasformcontrol binded to the orthographicCamera, the eye direction is also the subtraction of
camera position and object world position;

hughhwang 6 년 전
부모
커밋
d8608df953
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      examples/js/controls/TransformControls.js

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

@@ -216,7 +216,7 @@ THREE.TransformControls = function ( camera, domElement ) {
 
 		} else if ( this.camera instanceof THREE.OrthographicCamera ) {
 
-			eye.copy( cameraPosition ).normalize();
+			eye.copy( cameraPosition ).sub( worldPosition ).normalize();
 
 		}