PxContactPoint
Defined in include/geomutils/PxContactPoint.h
-
struct PxContactPoint
Public Members
-
PxVec3 normal
The normal of the contacting surfaces at the contact point.
For two shapes s0 and s1, the normal points in the direction that s0 needs to move in to resolve the contact with s1.
-
PxReal separation
The separation of the shapes at the contact point.
A negative separation denotes a penetration.
-
PxU8 materialFlags
Material flags for this contact (eDISABLE_FRICTION, eDISABLE_STRONG_FRICTION).
See also
-
PxU32 internalFaceIndex1
The surface index of shape 1 at the contact point.
This is used to identify the surface material.
Note
This field is only supported by triangle meshes and heightfields, else it will be set to PXC_CONTACT_NO_FACE_INDEX.
Note
This value must be directly after internalFaceIndex0 in memory
-
PxVec3 normal