playMaker

Author Topic: iOS Device Roll wrong  (Read 3255 times)

smiffy

  • Junior Playmaker
  • **
  • Posts: 54
iOS Device Roll wrong
« 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


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: iOS Device Roll wrong
« Reply #1 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