Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Listeners and Callbacks
- // -------------------------------------------------------------------
- // First, create a variable that stores an arrow function to the
- // performHitTest method of this class. This method takes care of
- // starting the hit test in the native AR system.
- // We need this as an arrow function to have access to "this" in
- // the class scope. Creating this function in a variable allows
- // to remove the event listener once the scene closes.
- var performHitTestCallback = (evt) => this.performHitTest(evt);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement