Search Unity

Using Gyro to measure device angles

Discussion in 'Scripting' started by The3DMediaToonz, Jun 17, 2019.

  1. The3DMediaToonz

    The3DMediaToonz

    Joined:
    Oct 4, 2012
    Posts:
    11
    Hi to everyone, i need to measure actual device orientation on 2 axis using gyroscope.
    My goal is, assuming that when the device is left on a plane, such as a table, angles are 0,0, and when i rotate the device i can see actual rotation around the 2 axis of the phone (i'm excluding the Z axis perpendicular to the screen)
    It's very similar to have an air bubble level on the phone, that shows degrees.

    Thank you very much for your help
     
  2. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,520