Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

ARAnchor / SCNNode relation

Using ARKit, I have a use case where I need, from a touch event to retrieve the touched Node, and update it with some of its Anchor information.

With ARKit, I can retrieve the touched anchor, but then, how to get the related node ?

or

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

With SceneKit, I can retrieve the touched node, but then, how to get the related anchor ?

The only I found was to maintain a relationship table myself, using the various delegate’s calls. Is there any smarter way ?

>Solution :

The ARSCNView class exposes both -anchorForNode: and -nodeForAnchor:.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading