Box2D: b2ContactFilter Class Reference

| Box2D 2.4.0 A 2D physics engine for games

Public Member Functions | List of all members
b2ContactFilter Class Reference

`#include <b2_world_callbacks.h>`

## 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

## ◆ ShouldCollide()

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:

- /build/box2d/src/box2d-adaedf1772ede7420bc9ee569c8cba7952db91a0/include/box2d/b2_world_callbacks.h