Log in or register to post comments

Get gameObject location after created on ground scene plane

June 9, 2020 - 6:09am #1

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. 

Get gameObject location after created on ground scene plane

June 10, 2020 - 5:20am #2

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

Log in or register to post comments