Gravitron was a prototype that I created for the Ipod Touch using Objetive-C. The little balls bounce around inside the 3d box and are affected by gravity depending on what direction you are holding the device. When you touch your finger to the screen it creates a force around your finger that attracts the balls.
- Gravitational force applied to balls based on accelerometer direction.
- Slider that controls how much of an attraction your finger has on the balls. The force can be positive or negative.
- Wall collision can be toggled on and off. When off the balls move across the screen like a starfield.