Jolt Physics
A multi core friendly Game Physics Engine
|
#include <BroadPhaseLayerInterfaceMask.h>
Public Member Functions | |
JPH_OVERRIDE_NEW_DELETE | BroadPhaseLayerInterfaceMask (uint inNumBroadPhaseLayers) |
void | ConfigureLayer (BroadPhaseLayer inBroadPhaseLayer, uint32 inGroupsToInclude, uint32 inGroupsToExclude) |
virtual uint | GetNumBroadPhaseLayers () const override |
Return the number of broadphase layers there are. More... | |
virtual BroadPhaseLayer | GetBroadPhaseLayer (ObjectLayer inLayer) const override |
Convert an object layer to the corresponding broadphase layer. More... | |
bool | ShouldCollide (ObjectLayer inLayer1, BroadPhaseLayer inLayer2) const |
Returns true if an object layer should collide with a broadphase layer, this function is being called from ObjectVsBroadPhaseLayerFilterMask. More... | |
void | SetBroadPhaseLayerName (BroadPhaseLayer inLayer, const char *inName) |
virtual const char * | GetBroadPhaseLayerName (BroadPhaseLayer inLayer) const override |
Get the user readable name of a broadphase layer (debugging purposes) More... | |
Public Member Functions inherited from BroadPhaseLayerInterface | |
virtual | ~BroadPhaseLayerInterface ()=default |
Destructor. More... | |
virtual uint | GetNumBroadPhaseLayers () const =0 |
Return the number of broadphase layers there are. More... | |
virtual BroadPhaseLayer | GetBroadPhaseLayer (ObjectLayer inLayer) const =0 |
Convert an object layer to the corresponding broadphase layer. More... | |
virtual const char * | GetBroadPhaseLayerName (BroadPhaseLayer inLayer) const =0 |
Get the user readable name of a broadphase layer (debugging purposes) More... | |
Public Member Functions inherited from NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
void | operator= (const NonCopyable &)=delete |
BroadPhaseLayerInterface implementation. This defines a mapping between object and broadphase layers. This implementation works together with ObjectLayerPairFilterMask and ObjectVsBroadPhaseLayerFilterMask. A broadphase layer is suitable for an object if its group & inGroupsToInclude is not zero and its group & inGroupsToExclude is zero. The broadphase layers are iterated from lowest to highest value and the first one that matches is taken. If none match then it takes the last layer.
|
inlineexplicit |
|
inline |
|
inlineoverridevirtual |
Convert an object layer to the corresponding broadphase layer.
Implements BroadPhaseLayerInterface.
|
inlineoverridevirtual |
Get the user readable name of a broadphase layer (debugging purposes)
Implements BroadPhaseLayerInterface.
|
inlineoverridevirtual |
Return the number of broadphase layers there are.
Implements BroadPhaseLayerInterface.
|
inline |
|
inline |
Returns true if an object layer should collide with a broadphase layer, this function is being called from ObjectVsBroadPhaseLayerFilterMask.