Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Hit test callback. If the hit test was successful (i.e., detected a
- // point in the real world), registers an anchor with that point.
- hitTestCallback(anchorTransform) {
- if (anchorTransform) {
- console.log("Transform from hit test: " + anchorTransform + ". Registering anchor...");
- this.arSystem.registerAnchor(anchorTransform, (anchorId) => this.registerAnchorCallback(anchorId));
- } else {
- console.log("No transform received from hit test");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement