I am trying to build an application using Unity for Android. It uses Vuforia (set to digital eyewear mode) and ARCore for ground plane detection.
The goal is to place some object at a location on the ground plane based on some event other than touch (like voice command).
I saw that in the samples shown in website, AnchorInputListener performs the screen coord calculation and call PlaneFinderBehavior. Since I don't have a touch event, I tried manually calling the PlaneFinderBehavior.OnInteractiveHitTest with a valid screenpos. It places the model on the ground plane, but the position is not stable (the model moves when I move the camera). If I touch the screen, then the model is placed but remains fairly stationary even when I move the camera.
Am I doing something wrong, or is there a better way to manually place some object on the ground plane? Also, can the object to be placed be instantiated at runtime based on a prefab?
Attached is my setup of PlaneFinderBehavior.
Thanks for the help!