Reactor.BaseQueryFilter.Flags Class Reference

pxFilter.CollisionFlags for changing the query behaviour. More...

Static Public Attributes

const uint FORCE_BLOCK = 1
 When set, treats all hits as blocking. More...
 
const uint FIXED_FILTER = 1 << 1
 This flag should always be set. More...
 
const uint EXCLUDE_TOUCHES = 1 << 2
 When set, touching hits are excluded from results. More...
 

Detailed Description

pxFilter.CollisionFlags for changing the query behaviour.

Member Data Documentation

◆ EXCLUDE_TOUCHES

const uint Reactor.BaseQueryFilter.Flags.EXCLUDE_TOUCHES = 1 << 2
static

When set, touching hits are excluded from results.

◆ FIXED_FILTER

const uint Reactor.BaseQueryFilter.Flags.FIXED_FILTER = 1 << 1
static

This flag should always be set.

This is needed because PhysX has a fixed filter function that always runs before any other filters that filters out entities that do not have any of the bits set in the query filter. We want all entities to pass this filter so our prefilter can run, so we ensure this flag is set on all entity filters and all query filters.

◆ FORCE_BLOCK

const uint Reactor.BaseQueryFilter.Flags.FORCE_BLOCK = 1
static

When set, treats all hits as blocking.