|
@@ -352,7 +352,12 @@ function WebXRManager( renderer, gl ) {
|
|
|
|
|
|
controller.matrix.fromArray( inputPose.transform.matrix );
|
|
|
controller.matrix.decompose( controller.position, controller.rotation, controller.scale );
|
|
|
- controller.visible = true;
|
|
|
+
|
|
|
+ if ( inputSource.targetRayMode === 'pointing' ) {
|
|
|
+
|
|
|
+ controller.visible = true;
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
continue;
|
|
|
|