Here is 2D collision processed with EJS event.
You can lean how to use EJS event to process collision.
Download the jar file, double click to run it, then
right click mouse and select "open ejs model" to view how it was created with EJS.
(You need to [url=]download EJS[/url] and installed it -- i.e. unzip downloaded ZIP file.)

translate strings in simulation to different language format before download
Full screen applet or Problem viewing java?Add to exception site list
Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop. This work is licensed under a Creative Commons Attribution 2.5 Taiwan License
Download EJS jar file(1036kB):double click downloaded file to run it. (1 times by 1 users) , Download EJS source View EJS source