Physics.gravity = Vector2(iPhoneInput.acceleration.x * 40, iPhoneInput.acceleration.y * 40);
How would I negate this? I tried .-x and .- y but Unity throws the error "expecting ), found ‘.’ ".
I’m trying to have the iPhone acceleration control gravity in horizontal mode. (This works as expected in Vertical mode). I have set iPhoneSettings.verticalOrientation = false, but this doesn’t matter. Any ideas? Thanks,
brandon