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.
The above links are broken kindly let me know if
Atash | 5 May, 2011 | 5:22The above links are broken kindly let me know if the ball example is on another address
I think that example has been lost (it was on
peter | 13 May, 2011 | 15:39I think that example has been lost (it was on an external server), however collision detection has been upgraded significantly since then. Newer examples of collision detection can be obtained by downloading the 2.2 release of the library and viewing c3dl-dev/tests/collision/collision.html