RavEngine
Loading...
Searching...
No Matches
physx::PxCustomSceneQuerySystemAdapter Class Referenceabstract

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.
 

Detailed Description

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.

Member Function Documentation

◆ getPrunerIndex()

virtual PxU32 physx::PxCustomSceneQuerySystemAdapter::getPrunerIndex ( const PxRigidActor &  actor,
const PxShape &  shape 
) const
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.

Note
The returned index must be valid, i.e. it must have been previously returned to users by PxCustomSceneQuerySystem::addPruner.
Parameters
[in]actorThe actor
[in]shapeThe shape
Returns
A pruner index for this actor/shape.
See also
PxRigidActor PxShape PxCustomSceneQuerySystem::addPruner

◆ processPruner()

virtual bool physx::PxCustomSceneQuerySystemAdapter::processPruner ( PxU32  prunerIndex,
const PxQueryThreadContext *  context,
const PxQueryFilterData &  filterData,
PxQueryFilterCallback *  filterCall 
) const
pure virtual

Pruner filtering callback.

This will be called for each query to validate whether it should process a given pruner.

Parameters
[in]prunerIndexThe index of currently processed pruner
[in]contextThe query context
[in]filterDataThe query's filter data
[in]filterCallThe query's filter callback
Returns
True to process the pruner, false to skip it entirely

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