|
RavEngine
|
Stores results of raycast queries. More...
#include <PxGeometryHit.h>
Public Attributes | |
| PxReal | u |
| PxReal | v |
| barycentric coordinates of hit point, for triangle mesh and height field (flag: PxHitFlag::eUV) | |
Public Attributes inherited from physx::PxLocationHit | |
| 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. | |
Public Attributes inherited from physx::PxQueryHit | |
| PxU32 | faceIndex |
Additional Inherited Members | |
Public Member Functions inherited from physx::PxLocationHit | |
| PX_INLINE bool | hadInitialOverlap () const |
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.