Skip to content

Commit

Permalink
Merge pull request #19085 from Mugen87/dev48
Browse files Browse the repository at this point in the history
WebXRManager: Update camera's local matrix and transform properties.
  • Loading branch information
mrdoob authored Jan 25, 2021
2 parents cf47091 + 628de1f commit ff5573c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderers/webxr/WebXRManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,8 @@ function WebXRManager( renderer, gl ) {
// update camera and its children

camera.matrixWorld.copy( cameraVR.matrixWorld );
camera.matrix.copy( cameraVR.matrix );
camera.matrix.decompose( camera.position, camera.quaternion, camera.scale );

const children = camera.children;

Expand Down

0 comments on commit ff5573c

Please sign in to comment.