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

Default filter class that uses the pair filter in combination with a specified layer to filter layers. More...

#include <ObjectLayer.h>

Inheritance diagram for DefaultObjectLayerFilter:
ObjectLayerFilter NonCopyable

Public Member Functions

 DefaultObjectLayerFilter (const ObjectLayerPairFilter &inObjectLayerPairFilter, ObjectLayer inLayer)
 Constructor.
 
 DefaultObjectLayerFilter (const DefaultObjectLayerFilter &inRHS)
 Copy constructor.
 
virtual bool ShouldCollide (ObjectLayer inLayer) const override
 Function to filter out object layers when doing collision query test (return true to allow testing against objects with this layer)
 
- Public Member Functions inherited from ObjectLayerFilter
virtual ~ObjectLayerFilter ()=default
 Destructor.
 
- Public Member Functions inherited from NonCopyable
 NonCopyable ()=default
 
 NonCopyable (const NonCopyable &)=delete
 
void operator= (const NonCopyable &)=delete
 

Detailed Description

Default filter class that uses the pair filter in combination with a specified layer to filter layers.

Constructor & Destructor Documentation

◆ DefaultObjectLayerFilter() [1/2]

DefaultObjectLayerFilter::DefaultObjectLayerFilter ( const ObjectLayerPairFilter inObjectLayerPairFilter,
ObjectLayer  inLayer 
)
inline

Constructor.

◆ DefaultObjectLayerFilter() [2/2]

DefaultObjectLayerFilter::DefaultObjectLayerFilter ( const DefaultObjectLayerFilter inRHS)
inline

Copy constructor.

Member Function Documentation

◆ ShouldCollide()

virtual bool DefaultObjectLayerFilter::ShouldCollide ( ObjectLayer  inLayer) const
inlineoverridevirtual

Function to filter out object layers when doing collision query test (return true to allow testing against objects with this layer)

Reimplemented from ObjectLayerFilter.


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