I want to move objects on iPhone screen (rectangle, circle and so on) by moving iPhone. For example, I move iPhone along X-axis and the object moves along X-axis. The same for Y,Z-axis.
How can I do this? Can I get algorithm for it?
Thank you.
P.S: I looked for a while and seems like it is possible using accelerometer.