Box2D: b2ContactFilter Class Reference

Box2D

b2ContactFilter Class Reference

Implement this class to provide collision filtering. More...

List of all members.

Public Member Functions

virtual bool ShouldCollide (b2Shape *shape1, b2Shape *shape2)
 Return true if contact calculations should be performed between these two shapes.

Detailed Description

Implement this class to provide collision filtering.

In other words, you can implement this class if you want finer control over contact creation.


Member Function Documentation

bool b2ContactFilter::ShouldCollide ( b2Shape shape1,
b2Shape shape2 
) [virtual]

Return true if contact calculations should be performed between these two shapes.

Warning:
for performance reasons this is only called when the AABBs begin to overlap.


The documentation for this class was generated from the following files:
  • b2WorldCallbacks.h
  • b2WorldCallbacks.cpp

Generated on Sun Apr 13 15:21:27 2008 for Box2D by  doxygen 1.5.4