Thu
May 14th

Beautiful Algorithms 3: Balls

Beautiful Algorithms 3 is going to be about simple physics.  These examples will be written with Ruby Shoes, and will demonstrate how to simulate bouncing balls and collisions.

The easiest way to model bouncing is to go back to basics with high school physics.  Start off with 1D collisions, then add the second dimensions, then apply gravity.

The first post in this series will be posted tomorrow.  To get Shoes, download it here: shoooes.net.  My previous Shoes example was Let’s Make a Game: Snake.

Comments (View)
Related Posts Widget for Blogs by LinkWithin