"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

Compairing Coordinates from tracked objects

Hi,

i'm currently working on my Bachelor Thesis with the Hololens and Vuforia.

I reproduce the Game Towers of Hanoi, my task is to recognize the small objects ( 5 different discs) and the programm should tell me when i move the disc to another place if the game rules (only small on big discs ) is still okay.

The recognition with the objects works fine, i scanned the objects with the vuforia app and stored them in the database and put them into my unity project in the objecttargets. 

with the DefaulttrackableEventhandler.cs file i get the real world coordinates with calling this.transform.position into my unity cubes i place holographic when ever i detect an object. 

my problem now is i want to compare the x y z coordinates from two discs to check if they are placed right. Is their any good way to do so? cause at the moment i have a lot of trouble getting meaningfull coordinates to compare.

i first check if the x coordinates is +-0.3 inline with the compared object, then the same for the z coordinate. and my plan is now to check the y coordinate if the upper one minus the lower one is negative cause the y coordinate of the higher one should be bigger. 

but thats not working always :D

if anyone finds time or has help thank you

friendly greetings.

Hey Thanks first for the fast replay.

My World Center Mode is already set to Camera. 

Is there any conversion for the Hololens Tracking, like 10cm moving with the camera is +/-1.0 in the coordinates?

Hey its me again,

I got question to the Camera Position relative to the tracked object.

My Camera in unity starts at (0,0,0).