home subscribe to email updates subscribe to RSS updates

Archive for August 20, 2006

Actionscript Physics: Ball on Ball Reactions.

If you’re anything like me, the idea of adding some simple physics to your next game is freaking exciting… though a little intimidating. Unfortunately I lost my Math mojo around year 10 when girls and football stole the spotlight.

I recently purchased “Physics for Game Programmers” looking for some easy answers. It’s a great book (highly worth buying) but a little heavy on theory and light on code examples. I was specifically after information on ball-ball reactions and angular momentum though it left me feeling like I should’ve paid a little more attention in class. Admittedly, I haven’t gone through the book chapter by chapter (this probably would solve my problem) but who has time for that?!

In a bid to start giving back to the Flash community, here’s a headstart down the track to create realistic looking Billiard/Pool Ball physics in Actionscript.

Read the rest of this entry »