Playmaker Forum

PlayMaker Help & Tips => iOS Help => Topic started by: smiffy on March 12, 2014, 01:50:40 PM

Title: iOS Device Roll wrong
Post by: smiffy on March 12, 2014, 01:50:40 PM
Hi there,

I'm creating a game that has you tilting a bucket to catch objects but all the tilt values are wrong on GetDeviceRoll.
I'm only working in landscapeLeft at the moment so have fixed this by going into getDeviceRoll.cs and changing line 63's x&y values to (-x, -y).

This used to work a while ago when I tested on my iPhone4. Since then I've upgraded to iPhone5s so was wondering if this is an issue with the phone or Unity? Do I need to detect the model and have different values for each phone?

Cheers,
Matt

Title: Re: iOS Device Roll wrong
Post by: jeanfabre on March 18, 2014, 10:10:23 AM
Hi,

 I don't think so, the apple doc is the same for all devices:

https://developer.apple.com/library/ios/documentation/uikit/reference/UIAcceleration_Class/Reference/UIAcceleration.html

is it not a case where you have edited the publishing profile? maybe the default orientation is different, and it's more a problem of app settings then iphone version?

bye,

 Jean