Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice
  2. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Help Wanted Depth Calculation

Discussion in 'Unity MARS' started by wiltabone, Mar 12, 2021.

  1. wiltabone

    wiltabone

    Joined:
    Oct 30, 2015
    Posts:
    9
    I want to find the distance between the iOS device (equipped with LiDAR) and the real-world object centred in the screen. Using that depth information, I want to scale an overlay object that spawns from a MARS image marker.
    I have looked at some ARFoundation documentation (Raycasts) etc. but could not yet figure out how to just calculate the distance using the LiDAR. Perhaps through the depth image feature?

    Any tips please?
     
unityunity