We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a1bdda4 + 262a8f1 commit 85f44aaCopy full SHA for 85f44aa
src/renderers/webvr/WebXRManager.js
@@ -240,7 +240,16 @@ function WebXRManager( renderer ) {
240
241
if ( inputPose !== null ) {
242
243
- controller.matrix.elements = inputPose.pointerMatrix;
+ if ('targetRay' in inputPose) {
244
+
245
+ controller.matrix.elements = inputPose.targetRay.transformMatrix;
246
247
+ } else if ('pointerMatrix' in inputPose) {
248
249
+ controller.matrix.elements = inputPose.pointerMatrix;
250
251
+ }
252
253
controller.matrix.decompose( controller.position, controller.rotation, controller.scale );
254
controller.visible = true;
255
0 commit comments