Reversing iPhone Gravity

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

Try setting the iPhoneSettings.verticalOrientation to false, as it defaults to true I believe.

That part is actually commented out, so I don’t think thats the problem. What happens is if I try to build the game with vertical orientation, the gravity is still applied as if the iPhone is held vertically.