From 628de1fb61a0f35a76d183239dde8f0524cb541f Mon Sep 17 00:00:00 2001 From: Mugen87 Date: Wed, 8 Apr 2020 19:41:40 +0200 Subject: [PATCH] WebXRManager: Update camera's local matrix and transform properties. --- src/renderers/webxr/WebXRManager.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/renderers/webxr/WebXRManager.js b/src/renderers/webxr/WebXRManager.js index 162eaa2dcfcce0..ef84e86a623b74 100644 --- a/src/renderers/webxr/WebXRManager.js +++ b/src/renderers/webxr/WebXRManager.js @@ -413,6 +413,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 ); var children = camera.children;