The project consists to have a banner animated with a car crashing into a wall, but this animation must start only when moving the phone right.
We have a script monitoring the alpha, beta, gamma, but we need to find a way to add a conditional statement that triggers the animation. The one we have currently works randomly and works only in portrait mode. I don't understand how the alpha angle is calculated.
The animation images and the actual script will be provided.
You can see what it looks like right now at this address: [url removed, login to view]
(of course you have to see it on a mobile phone otherwise the animation won't start).