Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
ObjectLayerPairFilter Class Reference

Filter class to test if two objects can collide based on their object layer. Used while finding collision pairs. More...

#include <ObjectLayer.h>

Inheritance diagram for ObjectLayerPairFilter:
NonCopyable ObjectLayerPairFilterMask ObjectLayerPairFilterTable

Public Member Functions

virtual ~ObjectLayerPairFilter ()=default
 Destructor.
 
virtual bool ShouldCollide (ObjectLayer inLayer1, ObjectLayer inLayer2) const
 Returns true if two layers can collide.
 
- Public Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Detailed Description

Filter class to test if two objects can collide based on their object layer. Used while finding collision pairs.

Constructor & Destructor Documentation

◆ ~ObjectLayerPairFilter()

virtual ObjectLayerPairFilter::~ObjectLayerPairFilter ( )
virtualdefault

Destructor.

Member Function Documentation

◆ ShouldCollide()

virtual bool ObjectLayerPairFilter::ShouldCollide ( ObjectLayer  inLayer1,
ObjectLayer  inLayer2 
) const
inlinevirtual

Returns true if two layers can collide.

Reimplemented in ObjectLayerPairFilterMask, and ObjectLayerPairFilterTable.


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