I use Vuforia to position a Hologram initially but then want to fix it and disable the tracking. Later I want to restart the tracking and re-position the object.
I would like to initially detect the Target, let it position the Hologram, disable Vuforia and set a WorldAnchor (through the WorldAnchorManager script from the Holotoolkit). At a later time I would like to re-activate the Vuforia tracking and move the object to the new target position.
I tried to do this in the OnTrackableStateChanged function. I can set the WorldAnchor and disable Vuforia through
VuforiaBehaviour.Instance.enabled = false;
in that function initially. But when I try to re-activate the tracking & positioning it does not work with WorldAnchors.
Of course I first called
and then re-enabled the Vuforia tracking with
VuforiaBehaviour.Instance.enabled = true;
and then again disable vuforia and add a new anchor in the OnTrackableStateChanged function, but the object does not get moved to the new position of the image Target!
Whenever I set a WorldAnchor on a child of the ImageTarget it will never get moved to the new Targert positon even if I first remove the object. Is there maybe an Event when the re-positioning is done so I could add the new anchor there? Maybe it adds the anchor before the move by Vuforia happens?
Is there an Option for Vuforia to automatically manage WorldAnchors?