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.
1 parent 0643f15 commit e99bdc2Copy full SHA for e99bdc2
hit-test-anchors.html
@@ -217,7 +217,9 @@
217
continue;
218
}
219
const anchorPose = frame.getPose(anchor.anchorSpace, xrRefSpace);
220
- anchoredObject.matrix = anchorPose.transform.matrix;
+ if (anchorPose) {
221
+ anchoredObject.matrix = anchorPose.transform.matrix;
222
+ }
223
224
225
scene.startFrame();
@@ -233,4 +235,4 @@
233
235
initXR();
234
236
</script>
237
</body>
-</html>
238
+</html>
0 commit comments