PxCreateBatchQueryExt
Defined in include/extensions/PxSceneQueryExt.h
-
PxBatchQueryExt *PxCreateBatchQueryExt(const PxScene &scene, PxQueryFilterCallback *queryFilterCallback, const PxU32 maxNbRaycasts, const PxU32 maxNbRaycastTouches, const PxU32 maxNbSweeps, const PxU32 maxNbSweepTouches, const PxU32 maxNbOverlaps, const PxU32 maxNbOverlapTouches)
Create a PxBatchQueryExt without the need for pre-allocated result or touch buffers.
- Parameters
scene – [in] Queries will be performed against objects in the specified PxScene
queryFilterCallback – [in] Filtering for all queries is performed using queryFilterCallback. A null pointer results in all shapes being considered.
maxNbRaycasts – [in] A result buffer will be allocated that is large enough to accommodate maxNbRaycasts calls to PxBatchQueryExt::raycast()
maxNbRaycastTouches – [in] A touch buffer will be allocated that is large enough to accommodate maxNbRaycastTouches touches for all raycasts in the batch.
maxNbSweeps – [in] A result buffer will be allocated that is large enough to accommodate maxNbSweeps calls to PxBatchQueryExt::sweep()
maxNbSweepTouches – [in] A touch buffer will be allocated that is large enough to accommodate maxNbSweepTouches touches for all sweeps in the batch.
maxNbOverlaps – [in] A result buffer will be allocated that is large enough to accommodate maxNbOverlaps calls to PxBatchQueryExt::overlap()
maxNbOverlapTouches – [in] A touch buffer will be allocated that is large enough to accommodate maxNbOverlapTouches touches for all overlaps in the batch.
- Returns
Returns a PxBatchQueryExt
instance. A NULL pointer will be returned if the subsequent allocations fail or if any of the arguments are illegal.
In the event that a NULL pointer is returned a corresponding error will be issued to the error stream.