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)
 
virtual ~b2ContactFilter ()
 

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.

Definition at line 57 of file b2_world_callbacks.h.

Constructor & Destructor Documentation

◆ ~b2ContactFilter()

virtual b2ContactFilter::~b2ContactFilter ( )
inlinevirtual

Definition at line 60 of file b2_world_callbacks.h.

Member Function Documentation

◆ ShouldCollide()

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.

Definition at line 28 of file b2_world_callbacks.cpp.


The documentation for this class was generated from the following files:


mvsim
Author(s):
autogenerated on Tue Jul 4 2023 03:08:22