Hi...In my game I have a bouncing ball on screen. I want to move ball left or right using device left or right tilt. I looked at other posts and used this code. It is working but in opposite directions. If I tilt device toward left then ball goes towards right and viceversa.
Please help in correcting the code.
if touch gamma orientation > 0 , then, set 8 direction vector X to touch.accelerationXwithG*64
if touch gamma orientation < 0 , then, set 8 direction vector X to touch.accelerationXwithG*64