"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

Setting position of AR object relative to image target

Hi there,

I have searched around and thought I found some answers, but in the end none have these have yielded the desired result.

So, I have a Unity/Vuforia AR project using a standard image target to spawn an animated 3D object. Because the Target may be either flat on a table (horizontal) or hung on a wall (vertical), I needed it to be oriented the upright independently of the target's orientation.

I managed to find help with this and have a working script, however, this has created a new issue. Because I cannot have the object as a child of the target for this script to work, the object now spawns at some distance from the target, sometimes it is out of view and sometimes it spawns on top of the camera.

What I need and have not yet found, is a way to locate the object at the same location as the target, as it would if it was a child of the target.

I have attached an image to try and show the issue.

I am using Unity 2020.3.17 and Vuforia Engine 10.1.4

Thanks in advance for your wisdom and help.

Justin