Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
b2ContactFilter Class Reference

`#include <b2WorldCallbacks.h>`

Inheritance diagram for b2ContactFilter:

## Public Member Functions
virtual | ~b2ContactFilter ()
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.

## Constructor & Destructor Documentation

virtual ~b2ContactFilter | ( |  | ) |
| inline virtual

## Member Function Documentation

bool 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 files:

- Box2D/Dynamics/b2WorldCallbacks.h
- Box2D/Dynamics/b2WorldCallbacks.cpp