- Home /
Question by
febs1488 · Jul 17, 2012 at 02:17 PM ·
accelerometerorientationdeviceorientation
How to make the values obtained from the accelerometer to behave the same in all device orientations?
I'm moving a sphere with rigidbody.AddForce with the values obtained from accelerometer. In Portrait mode works fine but when I change the orientation of the device it works bad.
What I can do?
Comment
Answer by jorjdboss · Jul 27, 2012 at 10:37 AM
I found this: unity docs - device orientation
Simple switch corresponding axes incase of device orientation change. Use iOS remote and test it out first...