irr::newton::MaterialCollisionCallback Class Reference

Callbacks for collision between two materials. More...

#include <material_collision_callback.hpp>

List of all members.

Public Member Functions

virtual int ContactBegin (irr::newton::MaterialPair *material_pair, irr::newton::Body *body0, irr::newton::Body *body1)
virtual void ContactEnd (irr::newton::MaterialPair *material_pair)
virtual int ContactProcess (irr::newton::MaterialPairAndContact *material_pair_and_contact)


Detailed Description

Callbacks for collision between two materials.


Member Function Documentation

virtual int irr::newton::MaterialCollisionCallback::ContactBegin ( irr::newton::MaterialPair material_pair,
irr::newton::Body body0,
irr::newton::Body body1 
) [inline, virtual]

The 2 bodies will collide soon.

Parameters:
material_pair the materials of the two bodies
body0 the first body wich collide
body1 the second body wich collide
Returns:
1 to accept collision, 0 to refuse collision

virtual void irr::newton::MaterialCollisionCallback::ContactEnd ( irr::newton::MaterialPair material_pair  )  [inline, virtual]

The 2 bodies has collided but now they don't collide

Parameters:
material_pair the materials of the two bodies
Returns:
none

virtual int irr::newton::MaterialCollisionCallback::ContactProcess ( irr::newton::MaterialPairAndContact material_pair_and_contact  )  [inline, virtual]

The 2 bodies is colliding

Parameters:
material_pair_and_contact the materials of the two bodies and the material contact object
Returns:
1 to accept collision, 0 to refuse collision


The documentation for this class was generated from the following file:
Generated on Fri Dec 15 16:58:33 2006 for IrrNewt by  doxygen 1.5.1-p1