Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question 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?