PxRaycastHit Struct Reference

Stores results of raycast queries. More...

#include <PxQueryReport.h>

Inheritance diagram for PxRaycastHit:
Collaboration diagram for PxRaycastHit:

Public Member Functions

PX_INLINE PxRaycastHit ()
 
- Public Member Functions inherited from PxLocationHit
PX_INLINE PxLocationHit ()
 
PX_INLINE bool hadInitialOverlap () const
 
- Public Member Functions inherited from PxQueryHit
PX_INLINE PxQueryHit ()
 
- Public Member Functions inherited from PxActorShape
PX_INLINE PxActorShape ()
 
PX_INLINE PxActorShape (PxRigidActor *a, PxShape *s)
 

Public Attributes

PxReal u
 
PxReal v
 barycentric coordinates of hit point, for triangle mesh and height field (flag: PxHitFlag::eUV) More...
 
PxU32 padTo16Bytes [3]
 
- Public Attributes inherited from PxLocationHit
PxHitFlags flags
 Hit flags specifying which members contain valid values. More...
 
PxVec3 position
 World-space hit position (flag: PxHitFlag::ePOSITION) More...
 
PxVec3 normal
 World-space hit normal (flag: PxHitFlag::eNORMAL) More...
 
PxF32 distance
 Distance to hit. More...
 
- Public Attributes inherited from PxQueryHit
PxU32 faceIndex
 
- Public Attributes inherited from PxActorShape
PxRigidActoractor
 
PxShapeshape
 

Detailed Description

Stores results of raycast queries.

PxHitFlag flags can be passed to raycast function, as an optimization, to cause the SDK to only compute specified members of this structure.

Some members like barycentric coordinates are currently only computed for triangle meshes and height fields, but next versions might provide them in other cases. The client code should check flags to make sure returned values are valid.

See also
PxScene.raycast PxBatchQuery.raycast

Constructor & Destructor Documentation

◆ PxRaycastHit()

PX_INLINE PxRaycastHit::PxRaycastHit ( )
inline

Member Data Documentation

◆ padTo16Bytes

PxU32 PxRaycastHit::padTo16Bytes[3]

◆ u

PxReal PxRaycastHit::u

◆ v

PxReal PxRaycastHit::v

barycentric coordinates of hit point, for triangle mesh and height field (flag: PxHitFlag::eUV)


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