Search Unity

Finding local Accelerometer roll

Discussion in 'Scripting' started by CDF, Apr 5, 2014.

  1. CDF

    CDF

    Joined:
    Sep 14, 2013
    Posts:
    1,311
    Hi, not sure if this is even possible, but I'm trying to find the roll value of a users device no matter what the devices rotation is. The orientation will always be portrait (home button at bottom).

    Basically, how can I extract the Y rotation in local space?

    below is what I'm trying to achieve.

    $problem.jpg