PxDefaultSimulationFilterShader
Defined in include/extensions/PxDefaultSimulationFilterShader.h
-
PxFilterFlags PxDefaultSimulationFilterShader(PxFilterObjectAttributes attributes0, PxFilterData filterData0, PxFilterObjectAttributes attributes1, PxFilterData filterData1, PxPairFlags &pairFlags, const void *constantBlock, PxU32 constantBlockSize)
Implementation of a simple filter shader that emulates PhysX 2.8.x filtering.
This shader provides the following logic:
If one of the two filter objects is a trigger, the pair is acccepted and PxPairFlag::eTRIGGER_DEFAULT will be used for trigger reports
Else, if the filter mask logic (see further below) discards the pair it will be suppressed (PxFilterFlag::eSUPPRESS)
Else, the pair gets accepted and collision response gets enabled (PxPairFlag::eCONTACT_DEFAULT)
1) Collision groups of the pair are enabled 2) Collision filtering equation is satisfied
See also