#include <PxQueryReport.h>
Public Member Functions | |
PX_INLINE | PxLocationHit () |
PX_INLINE bool | hadInitialOverlap () const |
Public Attributes | |
PxHitFlags | flags |
Hit flags specifying which members contain valid values. | |
PxVec3 | position |
World-space hit position (flag: PxHitFlag::ePOSITION). | |
PxVec3 | normal |
World-space hit normal (flag: PxHitFlag::eNORMAL). | |
PxF32 | distance |
Distance to hit. |
PxHitFlag flags can be passed to scene query functions, as an optimization, to cause the SDK to only generate specific members of this structure.
PX_INLINE PxLocationHit::PxLocationHit | ( | ) | [inline] |
PX_INLINE bool PxLocationHit::hadInitialOverlap | ( | ) | const [inline] |
For sweep hits: true for shapes overlapping at zero sweep distance.
PxF32 PxLocationHit::distance |
Distance to hit.
Otherwise, this value will be >= 0 (flag: PxHitFlag::eDISTANCE)
PxHitFlags PxLocationHit::flags |
Hit flags specifying which members contain valid values.
World-space hit normal (flag: PxHitFlag::eNORMAL).
World-space hit position (flag: PxHitFlag::ePOSITION).