#include <PxQueryReport.h>
Public Member Functions | |
PX_INLINE | PxRaycastHit () |
Public Attributes | |
PxReal | u |
PxReal | v |
barycentric coordinates of hit point, for triangle mesh and height field (flag: PxHitFlag::eUV) | |
PxU32 | padTo16Bytes [3] |
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.
PX_INLINE PxRaycastHit::PxRaycastHit | ( | ) | [inline] |
PxReal PxRaycastHit::u |
PxReal PxRaycastHit::v |
barycentric coordinates of hit point, for triangle mesh and height field (flag: PxHitFlag::eUV)