iDevGames Forums
How To Animate a sliding of a circle on touchesMoved. - Printable Version

+- iDevGames Forums (http://www.idevgames.com/forums)
+-- Forum: Development Zone (/forum-3.html)
+--- Forum: iPhone, iPad & iPod Game Development (/forum-11.html)
+--- Thread: How To Animate a sliding of a circle on touchesMoved. (/thread-2271.html)



How To Animate a sliding of a circle on touchesMoved. - syednab - Oct 18, 2008 09:55 AM

Hi
I have a circle drawn as a view object using core graphics Frame work, on the touch of the circle i can move the circle . but My task is to slide the circle ,like when u drag the circle with certain speed then the circle should move(slide) and stop at any farther point.

I now i need to calculate the speed , distance moved and the destination point . but not clear how to do it. if any one have any similar example will be helpful. or any notes or guidance

I have to flick the circle in any direction and the circle should move and stop any where on the screen depending on the speed.