![]() |
XII Release 0.1.0
|
A 32x32 matrix of named filters that can be configured to enable or disable collisions. More...
#include <CollisionFilter.h>
Public Member Functions | |
void | SetGroupName (xiiUInt32 uiGroup, xiiStringView sName) |
xiiStringView | GetGroupName (xiiUInt32 uiGroup) const |
void | EnableCollision (xiiUInt32 uiGroup1, xiiUInt32 uiGroup2, bool bEnable=true) |
bool | IsCollisionEnabled (xiiUInt32 uiGroup1, xiiUInt32 uiGroup2) const |
xiiUInt32 | GetFilterMask (xiiUInt32 uiGroup) const |
xiiUInt32 | GetNumNamedGroups () const |
Returns how many groups have non-empty names. | |
xiiUInt32 | GetNamedGroupIndex (xiiUInt32 uiGroup) const |
Returns the index of the n-th group that has a non-empty name (ie. maps index '3' to index '5' if there are two unnamed groups in between). | |
xiiUInt32 | GetFilterGroupByName (xiiStringView sName) const |
Returns xiiInvalidIndex if no group with the given name exists. | |
xiiUInt32 | FindUnnamedGroup () const |
Searches for a group without a name and returns the index or xiiInvalidIndex if none found. | |
void | Save (xiiStreamWriter &inout_stream) const |
void | Load (xiiStreamReader &inout_stream) |
xiiResult | Save (xiiStringView sFile=s_sConfigFile) const |
xiiResult | Load (xiiStringView sFile=s_sConfigFile) |
Static Public Attributes | |
static constexpr const xiiStringView | s_sConfigFile = ":project/RuntimeConfigs/CollisionLayers.cfg"_xiisv |
A 32x32 matrix of named filters that can be configured to enable or disable collisions.