|
RavEngine
|
An adapter class to customize the object-to-pruner mapping. More...
#include <PxCustomSceneQuerySystem.h>
Public Member Functions | |
| virtual PxU32 | getPrunerIndex (const PxRigidActor &actor, const PxShape &shape) const =0 |
| Gets a pruner index for an actor/shape. | |
| virtual bool | processPruner (PxU32 prunerIndex, const PxQueryThreadContext *context, const PxQueryFilterData &filterData, PxQueryFilterCallback *filterCall) const =0 |
| Pruner filtering callback. | |
An adapter class to customize the object-to-pruner mapping.
In the regular PhysX code static shapes went to the static pruner, and dynamic shapes went to the dynamic pruner.
This class is a replacement for this mapping when N user-defined pruners are involved.
|
pure virtual |
Gets a pruner index for an actor/shape.
This user-defined function tells the system in which pruner a given actor/shape should go.
| [in] | actor | The actor |
| [in] | shape | The shape |
|
pure virtual |
Pruner filtering callback.
This will be called for each query to validate whether it should process a given pruner.
| [in] | prunerIndex | The index of currently processed pruner |
| [in] | context | The query context |
| [in] | filterData | The query's filter data |
| [in] | filterCall | The query's filter callback |