http://www.um.es/fem/EjsWiki/index.php/Examples/MultipleCollisions

MultipleCollisions

This is a simulation of the collisions among a large number of planar disks. The event-handler of the ODE solvers are used for the detection and treatment of the collisions.

Yes 3-D is possible.