PxQueryHit Struct Reference

Scene query hit information. More...

#include <PxQueryReport.h>

Inheritance diagram for PxQueryHit:
Collaboration diagram for PxQueryHit:

Public Member Functions

PX_INLINE PxQueryHit ()
 
- Public Member Functions inherited from PxActorShape
PX_INLINE PxActorShape ()
 
PX_INLINE PxActorShape (PxRigidActor *a, PxShape *s)
 

Public Attributes

PxU32 faceIndex
 
- Public Attributes inherited from PxActorShape
PxRigidActoractor
 
PxShapeshape
 

Detailed Description

Scene query hit information.

Constructor & Destructor Documentation

◆ PxQueryHit()

PX_INLINE PxQueryHit::PxQueryHit ( )
inline

Member Data Documentation

◆ faceIndex

PxU32 PxQueryHit::faceIndex

Face index of touched triangle, for triangle meshes, convex meshes and height fields.

Note
This index will default to 0xFFFFffff value for overlap queries.
Please refer to the user guide for more details for sweep queries.
This index is remapped by mesh cooking. Use PxTriangleMesh::getTrianglesRemap() to convert to original mesh index.
For convex meshes use PxConvexMesh::getPolygonData() to retrieve touched polygon data.

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