ARReferenceImage rotation

Hi,


I'm developing an ARKit application featuring Image Tracking and I'm stuck on a simple thing: how can I detect in which orientation the user is tracking and image? ARKit should know which edge of the image is on top (or left, or right, or bottom) in relationship with camera.


Can someone explain to me how can I detect in what rotation the image is?

Replies

Hello,


When the node is added for an ARImageAnchor in renderer(_:didAdd:for:), the orientation of that added node effectively serves as the orientation of the tracked image.