$Date: 2005/10/23 10:49:44 $
$Revision: 1.2 $
-- Are both on_collide routines called if two elements collide or only one of them?
-- Adds a_collidable to test it for collision with the all other elements
-- Checks if any element collides with any other element O(n*(n-1)*(n-2)*...*1)
-- If so calls both on_collide if call_both is true or any of them if not.
-- Removes a_collidable
The class EM_COLLISION_DETECTOR_3D is used to check whether two EM_COLLIDABLE_3D
are collided or not. It is a container. You can add an EM_COLLIDABLE_3D
with the command add and remove one with the command remove. If you call
check_for_collision the command checks if there is a collision and calls
on_collide command of either both of the collided objects if call_both is
true or one of the commands otherwise. Make sure, that ALL of the EM_COLLIDABLE_3D
objects added to the container are of the same type, because CAT calls
are used.