Created
November 24, 2020 12:13
-
-
Save burakiren/cfb18877045ded0fece0a1cdd12f6490 to your computer and use it in GitHub Desktop.
Hit Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Pass the click event to the ARFrame object and generate the hit detection result. | |
List<ARHitResult> hitResults = arFrame.hitTest(motionEvent); | |
//Create an anchor at the detected hit location to enable the AR Engine to continuously track the location. | |
for (ARHitResult arHitResult : hitResults) { | |
arHitResult.createAnchor(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment