Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Question Depth Calculation

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

  1. wiltabone


    Oct 30, 2015
    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?