Scene query filtering callbacks. More...
#include <PxQueryFiltering.h>
Public Member Functions | |
virtual PxQueryHitType::Enum | preFilter (const PxFilterData &filterData, const PxShape *shape, const PxRigidActor *actor, PxHitFlags &queryFlags)=0 |
This filter callback is executed before the exact intersection test if PxQueryFlag::ePREFILTER flag was set. More... | |
virtual PxQueryHitType::Enum | postFilter (const PxFilterData &filterData, const PxQueryHit &hit)=0 |
This filter callback is executed if the exact intersection test returned true and PxQueryFlag::ePOSTFILTER flag was set. More... | |
virtual | ~PxQueryFilterCallback () |
virtual destructor More... | |
Scene query filtering callbacks.
Custom filtering logic for scene query intersection candidates. If an intersection candidate object passes the data based filter (see PxQueryFilterData), filtering callbacks are executed if requested (see PxQueryFilterData.flags)
The preFilter function may overwrite the copy of queryFlags it receives as an argument to specify any of PxHitFlag::eMODIFIABLE_FLAGS on a per-shape basis. Changes apply only to the shape being filtered, and changes to other flags are ignored.
Filtering calls are not guaranteed to be sorted along the ray or sweep direction.
|
inlinevirtual |
virtual destructor
|
pure virtual |
This filter callback is executed if the exact intersection test returned true and PxQueryFlag::ePOSTFILTER flag was set.
[in] | filterData | custom filter data of the query |
[in] | hit | Scene query hit information. faceIndex member is not valid for overlap queries. For sweep and raycast queries the hit information can be cast to PxSweepHit and PxRaycastHit respectively. |
|
pure virtual |
This filter callback is executed before the exact intersection test if PxQueryFlag::ePREFILTER flag was set.
[in] | filterData | custom filter data specified as the query's filterData.data parameter. |
[in] | shape | A shape that has not yet passed the exact intersection test. |
[in] | actor | The shape's actor. |
[in,out] | queryFlags | scene query flags from the query's function call (only flags from PxHitFlag::eMODIFIABLE_FLAGS bitmask can be modified) |