VisionOS Object Capture get entity position

Hello :)

As title, I have used RCP with reference objects to capture items in real world. My next step is to detect how close the user finger is that object.

I had tried to get the entity's relative position to root but found the position, somehow, is always the same regardless of how and where I move around the camera or the object.

The entity has a child transform with a collision component, which is used to detect collision when the finger is closed enough to calculate the distance, but it fails as well...

Any help will be appreciated, ty

VisionOS Object Capture get entity position
 
 
Q