Skip to content

Instantly share code, notes, and snippets.

@sortofsleepy
Last active February 8, 2018 13:06
Show Gist options
  • Save sortofsleepy/ef31282422f9f0d28bca65d72a21ff82 to your computer and use it in GitHub Desktop.
Save sortofsleepy/ef31282422f9f0d28bca65d72a21ff82 to your computer and use it in GitHub Desktop.
// do this
vector<ARAnchor> mats;
for(int i = 0; i < session.currentFrame.anchors.count; ++i){
mats.push_back(session.currentFrame.anchors[i]);
}
// then access transforms from the "mats" variable.
// if you grab a transform from "mats", you shouldn't run into an out of bounds error because
// ARKit won't be automatically changing things in the "mats" variable.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment