You might find what you want at [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=4.0]2D Collision[/url] or [url=http://www.phy.ntnu.edu.tw/ntnujava/index.php?topic=120.0]Collision 2D [/url]