Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. // Hit test callback. If the hit test was successful (i.e., detected a
  2. // point in the real world), registers an anchor with that point.
  3. hitTestCallback(anchorTransform) {
  4. if (anchorTransform) {
  5. console.log("Transform from hit test: " + anchorTransform + ". Registering anchor...");
  6. this.arSystem.registerAnchor(anchorTransform, (anchorId) => this.registerAnchorCallback(anchorId));
  7. } else {
  8. console.log("No transform received from hit test");
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement