Box2D  2.2
Box2D API Reference for www.kobold2d.com developers
 All Classes Files Functions Variables Enumerations Enumerator Defines
b2ContactFilter Class Reference

#include <b2WorldCallbacks.h>

List of all members.

Public Member Functions

virtual bool ShouldCollide (b2Fixture *fixtureA, b2Fixture *fixtureB)

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

virtual bool b2ContactFilter::ShouldCollide ( b2Fixture fixtureA,
b2Fixture fixtureB 
) [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 file: