awilliams/RTanque — pull request #14 by joeandaverde (2013-07-16 01:18:48+00:00)
Title: Fixed collision detection when a bullet passes through a bot.

The algorithm uses the projection of the vector AB (from bullets
previous location to center of bot) onto AC (from bullets previous
location to new location). If the distance from the projection to the
center of the bot is less than the radius of the bot somewhere along the
way the bullet passed through the bot, resulting in a hit. If the
magnitude of this projection is greater than the magnitude of the
bullets vector then the bullet has not passed through the target
because the bullet has not yet traveled far enough.

Test cases have been added that describe the above.

Here's a graphic representation of the algorithm:

![projection](https://f.cloud.github.com/assets/696255/802058/681c9ba8-edb5-11e2-8da1-76695b084d30.png)

This should be thoroughly reviewed.