Scene query hit information for raycasts and sweeps returning hit position and normal information. More...
#include <PxQueryReport.h>
Public Member Functions | |
PX_INLINE | PxLocationHit () |
PX_INLINE bool | hadInitialOverlap () const |
![]() | |
PX_INLINE | PxQueryHit () |
![]() | |
PX_INLINE | PxActorShape () |
PX_INLINE | PxActorShape (PxRigidActor *a, PxShape *s) |
Public Attributes | |
PxHitFlags | flags |
Hit flags specifying which members contain valid values. More... | |
PxVec3 | position |
PxVec3 | normal |
World-space hit normal (flag: PxHitFlag::eNORMAL) More... | |
PxF32 | distance |
Distance to hit. More... | |
![]() | |
PxU32 | faceIndex |
![]() | |
PxRigidActor * | actor |
PxShape * | shape |
Scene query hit information for raycasts and sweeps returning hit position and normal information.
PxHitFlag flags can be passed to scene query functions, as an optimization, to cause the SDK to only generate specific members of this structure.
|
inline |
|
inline |
PxF32 PxLocationHit::distance |
Distance to hit.
PxHitFlags PxLocationHit::flags |
Hit flags specifying which members contain valid values.
PxVec3 PxLocationHit::normal |
World-space hit normal (flag: PxHitFlag::eNORMAL)
PxVec3 PxLocationHit::position |
World-space hit position (flag: #PxHitFlag::ePOSITION)
Formerly known as .impact, renamed for clarity.