playMaker

Author Topic: Wrong values of Get Device Roll action  (Read 1585 times)

Fortunato

  • Playmaker Newbie
  • *
  • Posts: 17
Wrong values of Get Device Roll action
« on: September 25, 2013, 03:26:48 AM »
Faced with the wrong work of action "Get Device Roll".

In my app is setting Landscape Left orientation, but "Get Device Roll" action with the same "Landscape Left" gain wrong angles, as if i choose "Portrait" orientation.

This code:
Code: [Select]
case BaseOrientation.LandscapeLeft:
zAngle = Mathf.Atan2(x, -y);
break;
receives the correct angles values in Landscape Left orientation. Who have the same problem? Please test this code. Its fix it? Or it is only mine problem?
« Last Edit: September 25, 2013, 03:28:55 AM by Fortunato »