Plasma Engine  2.0
Loading...
Searching...
No Matches
plCollisionFilterConfig Class Reference

A 32x32 matrix of named filters that can be configured to enable or disable collisions. More...

#include <CollisionFilter.h>

Public Member Functions

void SetGroupName (plUInt32 uiGroup, plStringView sName)
 
plStringView GetGroupName (plUInt32 uiGroup) const
 
void EnableCollision (plUInt32 uiGroup1, plUInt32 uiGroup2, bool bEnable=true)
 
bool IsCollisionEnabled (plUInt32 uiGroup1, plUInt32 uiGroup2) const
 
plUInt32 GetFilterMask (plUInt32 uiGroup) const
 
plUInt32 GetNumNamedGroups () const
 Returns how many groups have non-empty names.
 
plUInt32 GetNamedGroupIndex (plUInt32 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)
 
plUInt32 GetFilterGroupByName (plStringView sName) const
 Returns plInvalidIndex if no group with the given name exists.
 
plUInt32 FindUnnamedGroup () const
 Searches for a group without a name and returns the index or plInvalidIndex if none found.
 
void Save (plStreamWriter &inout_stream) const
 
void Load (plStreamReader &inout_stream)
 
plResult Save (plStringView sFile=s_sConfigFile) const
 
plResult Load (plStringView sFile=s_sConfigFile)
 

Static Public Attributes

static constexpr const plStringView s_sConfigFile = ":project/RuntimeConfigs/CollisionLayers.cfg"_plsv
 

Detailed Description

A 32x32 matrix of named filters that can be configured to enable or disable collisions.


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