playMaker

Author Topic: What exactly does Device Roll return?  (Read 1536 times)

nelsonn

  • Playmaker Newbie
  • *
  • Posts: 31
    • check out my portfolio :)
What exactly does Device Roll return?
« on: April 19, 2016, 04:43:37 AM »
Hi there,

I was wondering what kind of value Device Roll returns - is it just roll (as in pitch, yaw, roll)?
And if so - can I get pitch and yaw somehow as well?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: What exactly does Device Roll return?
« Reply #1 on: April 28, 2016, 03:16:31 AM »
Hi,

I would use Get Device Acceleration, because it shows the gravity, which means with some vector math, you can deduce the angle of the Device. however this is really challenging for my poor brain... I never was able to get it right...

I haven't found myself a good examples that works for all device orientation, if you find a regular script or example somewhere that works for you, I'll happily make it as an action.

Bye,

 Jean