Bouncing Ball Collisions

I’ve just spent the past couple of hours revisiting some tutorials and thoughts on bouncing ball physics and I wanted to try and incorporate collision detection. As far as I can tell it seems to work quite well. I even set the rotation of each of the balls based on their current x velocity so that it looks like they are actually spinning around. Click on the image below to launch the experiment.

bouncing_balls2