Playmaker Forum

PlayMaker News => General Discussion => Topic started by: nelsonn on April 19, 2016, 04:43:37 AM

Title: What exactly does Device Roll return?
Post by: nelsonn 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?
Title: Re: What exactly does Device Roll return?
Post by: jeanfabre 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