Hey guys. Currently I have a script that controls gravity based on which way the iPhone is tilted.
function Update () {
Physics.gravity = Vector3(iPhoneInput.acceleration.x * 80, iPhoneInput.acceleration.y * 80, 0);
}
Right now this works great, but only if the iPhone is vertical. I would like it to work horizontally instead, but when I try
verticalOrientation = true;
Screen.SetResolution(480, 320,false);
and set the view to iPhone Wide the gravity is then reversed. Any help would be great, thanks!
-Brandon