/** Extra filtering done during object query. See declaration for filtering logic */
FMaskFilter IgnoreMask;
/** This filter allows us to refine queries (channel, object) with an additional level of ignore by tagging entire classes of objects (e.g. "Red team", "Blue team")
If(QueryIgnoreMask & ShapeFilter != 0) filter out */
typedef uint8 FMaskFilter;
Solution:
Actor Team: team A and team B
TestActor(Team A) preform physics overlap detected with sight range, return actors only with team B
So how can I use IgnoreMask to filter actor with team B(like comment: e.g. “Red team”, “Blue team”)
Is there a way to get TestActor with spe tag with a phy overlap function?
Normally, get all Test Actors with array of Overlap result, and then loop for each TestActor and filter with tag. Like:
TArray Results;
if (MultOverlap(Results, ....))
{
FilterResultsByTag(Results, "SpeTag");
}
Does anyone know how this works? as I’m trying to use it to disabled collisions between groups of actors, and there doesn’t seem to be any documentation for this feature.
Can confirm that this does work - HOWEVER - you may need to call UpdatePhysicsFilterData on the Body Instance after setting the mask. That was the case for me, at least.