Jolt Physics
A multi core friendly Game Physics Engine
|
#include <ObjectLayerPairFilterTable.h>
Public Member Functions | |
JPH_OVERRIDE_NEW_DELETE | ObjectLayerPairFilterTable (uint inNumObjectLayers) |
Constructs the table with inNumObjectLayers Layers, initially all layer pairs are disabled. More... | |
uint | GetNumObjectLayers () const |
Get the number of object layers. More... | |
void | DisableCollision (ObjectLayer inLayer1, ObjectLayer inLayer2) |
Disable collision between two object layers. More... | |
void | EnableCollision (ObjectLayer inLayer1, ObjectLayer inLayer2) |
Enable collision between two object layers. More... | |
virtual bool | ShouldCollide (ObjectLayer inObject1, ObjectLayer inObject2) const override |
Returns true if two layers can collide. More... | |
Public Member Functions inherited from ObjectLayerPairFilter | |
virtual | ~ObjectLayerPairFilter ()=default |
Destructor. More... | |
virtual bool | ShouldCollide (ObjectLayer inLayer1, ObjectLayer inLayer2) const |
Returns true if two layers can collide. More... | |
Public Member Functions inherited from NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
void | operator= (const NonCopyable &)=delete |
Filter class to test if two objects can collide based on their object layer. Used while finding collision pairs. This implementation uses a table to determine if two layers can collide.
|
inlineexplicit |
Constructs the table with inNumObjectLayers Layers, initially all layer pairs are disabled.
|
inline |
Disable collision between two object layers.
|
inline |
Enable collision between two object layers.
|
inline |
Get the number of object layers.
|
inlineoverridevirtual |
Returns true if two layers can collide.
Reimplemented from ObjectLayerPairFilter.