Geeks With Blogs

Prabhu Kumar a tech twaddler.. June 2010 Entries
Applications: The Mathematics of Movement, Part 3
Previously: Part 1, Part 2 As promised in the previous post, this post will cover two variations of the marble move program. The first one, Infinite Move, keeps the marble moving towards the click point, rebounding it off the screen edges and changing its direction when the user clicks again. The second version, Finite Move, is the same as first except that the marble does not move forever. It moves towards the click point, rebounds off the screen edges and slowly comes to rest. The amount of time ......

Posted On Saturday, June 12, 2010 7:32 PM

Applications: The Mathematics of Movement, Part 2
In part 1 of this series we saw how we can make the marble move towards the click point, with a fixed speed. In this post we’ll see, first, how to get rid of Atan2(), sine() and cosine() in our calculations, and, second, reducing the speed of the marble as it approaches the destination, so it looks like the marble is easing into it’s final position. As I mentioned in one of the previous posts, this is achieved by making the speed of the marble a function of the distance between the marble and the ......

Posted On Sunday, June 6, 2010 1:53 PM

Copyright © TechTwaddle | Powered by: GeeksWithBlogs.net