If two balls collide in direct impact (head on) they don't come to a complete stop like your math would indicate. They bounce off each other in opposite directions. With your code two balls doing this will bounce in such a way that one stops and the other goes crazy.
Bookmarks