Box2D  3.0.0
A Real-Time-Oriented 2-D Physics Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
box2d::ContactFilter Class Reference

Implement this class to provide collision filtering. In other words, you can implement this class if you want finer control over contact creation. More...

#include <WorldCallbacks.hpp>

Public Member Functions

virtual ~ContactFilter ()
 
virtual bool ShouldCollide (const Fixture *fixtureA, const Fixture *fixtureB)
 Return true if contact calculations should be performed between these two shapes. More...
 

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.

Note
This data structure is 8-bytes large (on at least one 64-bit platform).

Constructor & Destructor Documentation

◆ ~ContactFilter()

virtual box2d::ContactFilter::~ContactFilter ( )
inlinevirtual

Member Function Documentation

◆ ShouldCollide()

bool ContactFilter::ShouldCollide ( const Fixture fixtureA,
const Fixture 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: