소스 검색

Merge pull request #18351 from DavidPeicho/fix/camera-matrixworldinv

Camera: update `matrixWorldInverse` in `updateWorldMatrix()` method
Michael Herzog 5 년 전
부모
커밋
998a21ec7d
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      src/cameras/Camera.js

+ 8 - 0
src/cameras/Camera.js

@@ -65,6 +65,14 @@ Camera.prototype = Object.assign( Object.create( Object3D.prototype ), {
 
 	},
 
+	updateWorldMatrix: function ( updateParents, updateChildren ) {
+
+		Object3D.prototype.updateWorldMatrix.call( this, updateParents, updateChildren );
+
+		this.matrixWorldInverse.getInverse( this.matrixWorld );
+
+	},
+
 	clone: function () {
 
 		return new this.constructor().copy( this );