By JFaull
on Tue, 06/09/2020 - 13:09
Hi, I am using Vuforia to place multiple objects on a ground plane and I would like to retrieve their individual coordinates so that I can interact with them inside C# scripts. Does anybody know how to do this? I suspect its something inside the Default Trackable Event Handler script as part of the Ground Plane Stage? The overall goal is to set two points on a ground plane and display a line between them and measure the distance. Any help would be greatly appriciated.
Hi,
Hi,
I believe transform.position would fit your use-case. It provides the world space position. In addition you could use Vector3.Distance to find out the distance between the 2 GameObjects.
Hope it helps.
Vuforia Engine Support