Created
November 24, 2020 12:12
-
-
Save burakiren/60d6fa5960a508935666f61e907642b4 to your computer and use it in GitHub Desktop.
Handle Result
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
//Obtain a frame of data from ARSession. | |
ARFrame arFrame = mArSession.update(); | |
//Obtain the ARCamera object from the ARFrame object. The ARCamera object can obtain the projection matrix of the camera to render the window. | |
ARCamera arCamera = arFrame.getCamera(); | |
//Obtain all trackable planes from ARSession. | |
Collection<ARPlane> arPlanes = mArSession.getAllTrackables(ARPlane.class); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment