PxContactPatch#

Defined in include/PxContact.h

struct PxContactPatch#

Header for a contact patch where all points share same material and normal.

Public Types

enum PxContactPatchFlags#

Values:

enumerator eHAS_FACE_INDICES#

Indicates this contact stream has face indices.

enumerator eMODIFIABLE#

Indicates this contact stream is modifiable.

enumerator eFORCE_NO_RESPONSE#

Indicates this contact stream is notify-only (no contact response).

enumerator eHAS_MODIFIED_MASS_RATIOS#

Indicates this contact stream has modified mass ratios.

enumerator eHAS_TARGET_VELOCITY#

Indicates this contact stream has target velocities set.

enumerator eHAS_MAX_IMPULSE#

Indicates this contact stream has max impulses set.

enumerator eREGENERATE_PATCHES#

Indicates this contact stream needs patches re-generated. This is required if the application modified either the contact normal or the material properties.

enumerator eCOMPRESSED_MODIFIED_CONTACT#

Public Members

PxConstraintInvMassScale mMassModification#

Modifiers for scaling the inertia of the involved bodies.

PxVec3 normal#

Contact normal.

PxReal restitution#

Restitution coefficient.

PxReal dynamicFriction#

Dynamic friction coefficient.

PxReal staticFriction#

Static friction coefficient.

PxReal damping#

Damping coefficient (for compliant contacts)

PxU16 startContactIndex#

Index of the first contact in the patch.

PxU8 nbContacts#

The number of contacts in this patch.

PxU8 materialFlags#

The combined material flag of two actors that come in contact.

PxU16 internalFlags#

The PxContactPatchFlags for this patch.

PxU16 materialIndex0#

Material index of first body.

PxU16 materialIndex1#

Material index of second body.

PxU16 pad[5]#