pub unsafe extern "C" fn PxCustomSceneQuerySystem_addPruner_mut(
    self_: *mut PxCustomSceneQuerySystem,
    primaryType: PxPruningStructureType,
    secondaryType: PxDynamicTreeSecondaryPruner,
    preallocated: u32
) -> u32
Expand description

Adds a pruner to the system.

The internal PhysX scene-query system uses two regular pruners (one for static shapes, one for dynamic shapes) and an optional compound pruner. Our custom scene query system supports an arbitrary number of regular pruners.

This can be useful to reduce the load on each pruner, in particular during updates, when internal trees are rebuilt in the background. On the other hand this implementation simply iterates over all created pruners to perform queries, so their cost might increase if a large number of pruners is used.

In any case this serves as an example of how the PxSceneQuerySystem API can be used to customize scene queries.

A pruner index