RavEngine
Loading...
Searching...
No Matches
physx::PxQueryFlag Struct Reference

Filtering flags for scene queries. More...

#include <PxQueryFiltering.h>

Public Types

enum  Enum {
  eSTATIC = (1<<0) , eDYNAMIC = (1<<1) , ePREFILTER = (1<<2) , ePOSTFILTER = (1<<3) ,
  eANY_HIT = (1<<4) , eNO_BLOCK = (1<<5) , eBATCH_QUERY_LEGACY_BEHAVIOUR = (1<<6) , eDISABLE_HARDCODED_FILTER = (1<<6) ,
  eRESERVED = (1<<15)
}
 

Detailed Description

Filtering flags for scene queries.

See also
PxQueryFilterData.flags

Member Enumeration Documentation

◆ Enum

Enumerator
eSTATIC 

Traverse static shapes.

eDYNAMIC 

Traverse dynamic shapes.

ePREFILTER 

Run the pre-intersection-test filter (see PxQueryFilterCallback::preFilter())

ePOSTFILTER 

Run the post-intersection-test filter (see PxQueryFilterCallback::postFilter())

eANY_HIT 

Abort traversal as soon as any hit is found and return it via callback.block. Helps query performance. Both eTOUCH and eBLOCK hitTypes are considered hits with this flag.

eNO_BLOCK 

All hits are reported as touching. Overrides eBLOCK returned from user filters with eTOUCH. This is also an optimization hint that may improve query performance.

eBATCH_QUERY_LEGACY_BEHAVIOUR 

Run with legacy batch query filter behavior. Raising this flag ensures that the hardcoded filter equation is neglected. This guarantees that any provided PxQueryFilterCallback will be utilised, as specified by the ePREFILTER and ePOSTFILTER flags.

eDISABLE_HARDCODED_FILTER 

Same as eBATCH_QUERY_LEGACY_BEHAVIOUR, more explicit name making it clearer that this can also be used with regular/non-batched queries if needed.

eRESERVED 

Reserved for internal use.


The documentation for this struct was generated from the following file: