|
RavEngine
|
This callback class facilitates reporting scene query hits (intersections) to the user. More...
#include <PxQueryReport.h>
Public Member Functions | |
| PxHitCallback (HitType *aTouches, PxU32 aMaxNbTouches) | |
| Initializes the class with user provided buffer. | |
| virtual PxAgain | processTouches (const HitType *buffer, PxU32 nbHits)=0 |
| virtual callback function used to communicate query results to the user. | |
| virtual void | finalizeQuery () |
| Query finalization callback, called after the last processTouches callback. | |
| PX_FORCE_INLINE bool | hasAnyHits () |
| Returns true if any blocking or touching hits were encountered during a query. | |
Public Attributes | |
| HitType | block |
| Holds the closest blocking hit result for the query. Invalid if hasBlock is false. | |
| bool | hasBlock |
| Set to true if there was a blocking hit during query. | |
| HitType * | touches |
| User specified buffer for touching hits. | |
| PxU32 | maxNbTouches |
| Size of the user specified touching hits buffer. | |
| PxU32 | nbTouches |
| Number of touching hits returned by the query. Used with PxHitBuffer. | |
This callback class facilitates reporting scene query hits (intersections) to the user.
User overrides the virtual processTouches function to receive hits in (possibly multiple) fixed size blocks.
|
inline |
Initializes the class with user provided buffer.
| [in] | aTouches | Optional buffer for recording PxQueryHitType::eTOUCH type hits. |
| [in] | aMaxNbTouches | Size of touch buffer. |
|
inlinevirtual |
Query finalization callback, called after the last processTouches callback.
Reimplemented in NpOverflowBuffer< HitType >.
|
pure virtual |
virtual callback function used to communicate query results to the user.
This callback will always be invoked with touches as a buffer if touches was specified as non-NULL. All reported touch hits are guaranteed to be closer than the closest blocking hit.
| [in] | buffer | Callback will report touch hits to the user in this buffer. This pointer will be the same as touches. |
| [in] | nbHits | Number of touch hits reported in buffer. This number will not exceed maxNbTouches. |
Implemented in NpOverflowBuffer< HitType >, and physx::PxHitBuffer< HitType >.
| PxU32 physx::PxHitCallback< HitType >::maxNbTouches |
Size of the user specified touching hits buffer.
| PxU32 physx::PxHitCallback< HitType >::nbTouches |
Number of touching hits returned by the query. Used with PxHitBuffer.