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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Height above Ground

Discussion in 'AR/VR (XR) Discussion' started by ArtLove, Aug 8, 2017.

  1. ArtLove

    ArtLove

    Joined:
    Oct 16, 2012
    Posts:
    49
    Good evening everyone,

    I'm looking to get the users (person in the real world) height above ground.

    Example: I'm on the ground therefore my height is 0. I walk up the stairs and my height steadily increases.

    Is there an effective way of accomplishing this? I've read about using acceleration, but it's way too shakey and no where near accurate.
     
  2. ArtLove

    ArtLove

    Joined:
    Oct 16, 2012
    Posts:
    49
    Just a small bump.

    For accuracy purposes, if really hate to have the user place the phone on the ground to calibrate the accelerometer.

    Is there any other method to determine the height the phone is from the ground?
     
  3. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Barometer sensor? What phone are you using.
     
  4. ArtLove

    ArtLove

    Joined:
    Oct 16, 2012
    Posts:
    49
    Good evening,

    I have a very simple Android phone. I don't believe I have a barometer sensor. I do have accelerometer and gyroscope