Last active
February 8, 2018 13:06
-
-
Save sortofsleepy/ef31282422f9f0d28bca65d72a21ff82 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// 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