![]() |
ezEngine
Release 25.03
|
A 32x32 matrix of named filters that can be configured to enable or disable collisions. More...
#include <CollisionFilter.h>
Public Member Functions | |
void | SetGroupName (ezUInt32 uiGroup, ezStringView sName) |
ezStringView | GetGroupName (ezUInt32 uiGroup) const |
void | EnableCollision (ezUInt32 uiGroup1, ezUInt32 uiGroup2, bool bEnable=true) |
bool | IsCollisionEnabled (ezUInt32 uiGroup1, ezUInt32 uiGroup2) const |
ezUInt32 | GetFilterMask (ezUInt32 uiGroup) const |
ezUInt32 | GetNumNamedGroups () const |
Returns how many groups have non-empty names. | |
ezUInt32 | GetNamedGroupIndex (ezUInt32 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) | |
ezUInt32 | GetFilterGroupByName (ezStringView sName) const |
Returns ezInvalidIndex if no group with the given name exists. | |
ezUInt32 | FindUnnamedGroup () const |
Searches for a group without a name and returns the index or ezInvalidIndex if none found. | |
void | Save (ezStreamWriter &inout_stream) const |
void | Load (ezStreamReader &inout_stream) |
ezResult | Save (ezStringView sFile=s_sConfigFile) const |
ezResult | Load (ezStringView sFile=s_sConfigFile) |
Static Public Attributes | |
static constexpr const ezStringView | s_sConfigFile = ":project/RuntimeConfigs/CollisionLayers.cfg"_ezsv |
A 32x32 matrix of named filters that can be configured to enable or disable collisions.