RavEngine
Loading...
Searching...
No Matches
physx::PxRaycastBufferN< N > Struct Template Reference

Returns touching raycast hits to the user in a fixed size array embedded in the buffer class. More...

#include <PxQueryReport.h>

Inheritance diagram for physx::PxRaycastBufferN< N >:
[legend]
Collaboration diagram for physx::PxRaycastBufferN< N >:
[legend]

Public Attributes

PxRaycastHit hits [N]
 
- Public Attributes inherited from physx::PxHitCallback< HitType >
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.
 

Additional Inherited Members

- Public Member Functions inherited from physx::PxHitBuffer< PxRaycastHit >
 PxHitBuffer (PxRaycastHit *aTouches=NULL, PxU32 aMaxNbTouches=0)
 Initializes the buffer with user memory.
 
PX_INLINE PxU32 getNbAnyHits () const
 Computes the number of any hits in this result, blocking or touching.
 
PX_INLINE const PxRaycastHit & getAnyHit (const PxU32 index) const
 Convenience iterator used to access any hits in this result, blocking or touching.
 
PX_INLINE PxU32 getNbTouches () const
 
PX_INLINE const PxRaycastHit * getTouches () const
 
PX_INLINE const PxRaycastHit & getTouch (const PxU32 index) const
 
PX_INLINE PxU32 getMaxNbTouches () const
 
- Public Member Functions inherited from physx::PxHitCallback< HitType >
 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.
 
- Protected Member Functions inherited from physx::PxHitBuffer< PxRaycastHit >
virtual PxAgain processTouches (const PxRaycastHit *buffer, PxU32 nbHits)
 virtual callback function used to communicate query results to the user.
 

Detailed Description

template<int N>
struct physx::PxRaycastBufferN< N >

Returns touching raycast hits to the user in a fixed size array embedded in the buffer class.


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