Skip to content

Instantly share code, notes, and snippets.

@burakiren
Created November 24, 2020 12:12
Show Gist options
  • Save burakiren/60d6fa5960a508935666f61e907642b4 to your computer and use it in GitHub Desktop.
Save burakiren/60d6fa5960a508935666f61e907642b4 to your computer and use it in GitHub Desktop.
Handle Result
//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