Skip to content

Commit

Permalink
Camera: Compute matrixWorldInverse automatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jun 1, 2017
1 parent 8fd10d8 commit e2f465d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cameras/Camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ Camera.prototype = Object.assign( Object.create( Object3D.prototype ), {

}(),

updateMatrixWorld: function ( force ) {

Object3D.prototype.updateMatrixWorld.call( this, force );

this.matrixWorldInverse.getInverse( this.matrixWorld );

},

clone: function () {

return new this.constructor().copy( this );
Expand Down

0 comments on commit e2f465d

Please sign in to comment.