Skip to main content
Participant
January 6, 2024

Scaling and metrics

I am trying to build an application that has a feature to select two objects and calculate distance between them. I used the XRInteractor to get the hit point data and calculate the distance. The obtained distance is confusing me as I am not able to understand where it is in meters or foot or others.

    This topic has been closed for replies.

    1 reply

    jtriveri
    Honored Contributor
    January 10, 2024

    Unity units are in meters. If you are using Vector3.Distance between the two points it would return a value in meters

    https://docs.unity3d.com/2019.3/Documentation/Manual/BestPracticeMakingBelievableVisuals1.html