Moving the object on desired path using Accelerometer
<p>I want to move the ball image on the desired path lets say a road with a "V" turn with the help of Accelerometer values.I have taken separate image for track with alpha non zero on track. Using alpha values i am calculating next point for the ball. This works fine for the part of the track parallel to X or Y axis.</p>

<p>But i am facing issues when moving the ball on slanted edges as shown below. Ball sometimes stuck up or gives jerks or moves out of the track. </p>

<pre><code>------------------------------------------
 O                                       /
-------------------------------------   /
                                    /  /
                                   /  /
                                  /  /
                                 /  /
                                /  /
</code></pre>

<p>or (if image is not visible) please consider number seven image as track "7". Want to move the ball on track similar to like "7"</p>

<p>Help is needed in urgent.</p>

<p>Thanks in advance.
Regards,
Vishal Mali</p>
