Simple Collision Detection Demo
Patrick Lam | 23 April, 2009 | 20:24
Here, I’ve made a simple demo, using the collision detection.
The edge of the canvas serves as the boundary, and the balls are only moving side to side. Whenever any objects have a collision, it will move in the opposite direction.
See Here.
This one is a similar demo but with more balls and moving in multi-directions, bouncing off each other.
See Here.
The edge of the canvas serves as the boundary, and the balls are only moving side to side. Whenever any objects have a collision, it will move in the opposite direction.
See Here.
This one is a similar demo but with more balls and moving in multi-directions, bouncing off each other.
See Here.

I think that to really test collisions you need to
Cathy Leung | 24 April, 2009 | 3:24I think that to really test collisions you need to do the following:
a) don’t just use balls, that’s far too simple a test
b) add in motion that isn’t just side to side (make them bounce around with walled edges etc.