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 have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question ARFoundation reflects the tilt of the ground in real world?

Discussion in 'AR' started by jk-acrodea, Nov 30, 2022.

  1. jk-acrodea

    jk-acrodea

    Joined:
    Jun 15, 2022
    Posts:
    6
    Hi, I was wondering if the plane detected via the plane manager reflects the tilt of the ground.
    Let's say you are standing on the floor that slightly slanted, but not much, then detected plane(floor) is tilted as ground?

    Thanks,

    JK
     
  2. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,076
    andyb-unity and davidmo_unity like this.
  3. jk-acrodea

    jk-acrodea

    Joined:
    Jun 15, 2022
    Posts:
    6
    Thank you for your info. I just wondered that ARFoundation reflects gyro sensor's tilt info but unfortunately it doesn't.
    OTH, inclined plane can be scanned using LiDAR I guess?
     
  4. KyryloKuzyk

    KyryloKuzyk

    Joined:
    Nov 4, 2013
    Posts:
    1,076
    It's impossible to determine if the ground plane is inclined this way because Input.gyro.gravity points to the center of the Earth, and not to the normal of the ground plane.

    Yes, it's possible. But if your app needs to determine the inclination of the ground plane, you'll have to do it yourself based on the scanned mesh.
     
    andyb-unity likes this.
  5. jk-acrodea

    jk-acrodea

    Joined:
    Jun 15, 2022
    Posts:
    6
    Ok. Got it. Thank you for your help!