oops::CollisionListenerInterface Class Reference

#include <CollisionListenerInterface.h>

List of all members.


Public Member Functions

virtual ~CollisionListenerInterface ()
virtual void notifyCollision (RigidBody *body1, RigidBody *body2, std::vector< ContactData > &contacts)=0

Detailed Description

Interface for collision listener classes. This interface can be used to implement classes which can listen on collisions of a RigidBody. The class has to be registered at the RigidBody it wants to listen to.

Constructor & Destructor Documentation

virtual oops::CollisionListenerInterface::~CollisionListenerInterface (  )  [inline, virtual]

Empty destructor.


Member Function Documentation

virtual void oops::CollisionListenerInterface::notifyCollision ( RigidBody body1,
RigidBody body2,
std::vector< ContactData > &  contacts 
) [pure virtual]

Callback-method when a collision occurs. This method is called from the RigidBody where the listener is registered when it collides.

Parameters:
body1 The RigidBody at which the listener is registered.
body2 The RigidBody with which the first RigidBody collides


The documentation for this class was generated from the following file:

Generated on Wed Oct 20 16:12:04 2010 for inVRs by doxygen 1.5.8