"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Track User's position in the Area Target

Hello,

I am currently working on a tour app and I am trying to locate the user's position within the Area Target to display it on a minimap just like in this video (at 8:50) made by Vuforia to introduce Area Targets. 

For now, I have tried to display the AR Camera position on the minimap, which doesn't work quite well because the AR Camera position is relative to its initial position in Unity.

Does anyone has an idea on how I could proceed?

 

Thanks in advance :)

adilaghayev

Fri, 06/18/2021 - 14:02

The position of the AR camera does change with relation to the augmentations and position in the Area. Even if the origin is always at the AR camera GameObject, you still should be able to calculate the distance and direction from the AR camera to any point in the Area Target.