Generic struct for receiving results of single query in a batch. Gets templated on hit type PxRaycastHit, PxSweepHit or PxOverlapHit.
More...
#include <PxBatchQueryDesc.h>
template<typename HitType>
struct PxBatchQueryResult< HitType >
Generic struct for receiving results of single query in a batch. Gets templated on hit type PxRaycastHit, PxSweepHit or PxOverlapHit.
- Deprecated:
- The batched query feature has been deprecated in PhysX version 3.4
◆ getAnyHit()
template<typename HitType >
Convenience iterator used to access any hits in this result, blocking or touching.
References PX_ASSERT.
◆ getNbAnyHits()
template<typename HitType >
Computes the number of any hits in this result, blocking or touching.
◆ block
template<typename HitType >
Holds the closest blocking hit for a single query in a batch. Only valid if hasBlock is true.
◆ hasBlock
template<typename HitType >
True if there was a blocking hit.
◆ nbTouches
template<typename HitType >
Number of touching hits returned by this query, works in tandem with touches pointer.
◆ pad
template<typename HitType >
pads the struct to 16 bytes.
◆ queryStatus
template<typename HitType >
◆ touches
template<typename HitType >
This pointer will either be set to NULL for 0 nbTouches or will point into the user provided batch query results buffer specified in PxBatchQueryDesc.
◆ userData
template<typename HitType >
Copy of the userData pointer specified in the corresponding query.
The documentation for this struct was generated from the following file: