#include <collision_listener.h>
Public Member Functions | |
CollisionListener () | |
Constructor. | |
virtual | ~CollisionListener () |
Destructor. | |
virtual bool | notify (Contact< d > *contact, int index)=0 |
Notifies when a contact has been detected. |
Class that implements a collision listener. Provides call backs so that events within the physics simulation can be acted on by external applications.
virtual bool physics::CollisionListener< d >::notify | ( | Contact< d > * | contact, | |
int | index | |||
) | [pure virtual] |
Notifies when a contact has been detected.
contact | Pointer to a contact | |
index | Integer; 0 or 1 depending on which body registered the listener |