PxContactPatch Struct Reference

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

#include <PxContact.h>

Public Types

enum  PxContactPatchFlags {
  eHAS_FACE_INDICES = 1, eMODIFIABLE = 2, eFORCE_NO_RESPONSE = 4, eHAS_MODIFIED_MASS_RATIOS = 8,
  eHAS_TARGET_VELOCITY = 16, eHAS_MAX_IMPULSE = 32, eREGENERATE_PATCHES = 64, eCOMPRESSED_MODIFIED_CONTACT = 128
}
 

Public Member Functions

 PX_ALIGN (16, PxMassModificationProps mMassModification)
 
 PX_ALIGN (16, PxVec3 normal)
 Contact normal. More...
 

Public Attributes

PxReal restitution
 Restitution coefficient. More...
 
PxReal dynamicFriction
 
PxReal staticFriction
 
PxU8 startContactIndex
 
PxU8 nbContacts
 
PxU8 materialFlags
 
PxU8 internalFlags
 
PxU16 materialIndex0
 
PxU16 materialIndex1
 

Detailed Description

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

Member Enumeration Documentation

◆ PxContactPatchFlags

Enumerator
eHAS_FACE_INDICES 

Indicates this contact stream has face indices.

eMODIFIABLE 

Indicates this contact stream is modifiable.

eFORCE_NO_RESPONSE 

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

eHAS_MODIFIED_MASS_RATIOS 

Indicates this contact stream has modified mass ratios.

eHAS_TARGET_VELOCITY 

Indicates this contact stream has target velocities set.

eHAS_MAX_IMPULSE 

Indicates this contact stream has max impulses set.

eREGENERATE_PATCHES 

This is required if the application modified either the contact normal or the material properties.

Indicates this contact stream needs patches re-generated.

eCOMPRESSED_MODIFIED_CONTACT 

Member Function Documentation

◆ PX_ALIGN() [1/2]

PxContactPatch::PX_ALIGN ( 16  ,
PxMassModificationProps  mMassModification 
)

◆ PX_ALIGN() [2/2]

PxContactPatch::PX_ALIGN ( 16  ,
PxVec3  normal 
)

Contact normal.

Member Data Documentation

◆ dynamicFriction

PxReal PxContactPatch::dynamicFriction

◆ internalFlags

◆ materialFlags

PxU8 PxContactPatch::materialFlags

◆ materialIndex0

PxU16 PxContactPatch::materialIndex0

◆ materialIndex1

PxU16 PxContactPatch::materialIndex1

◆ nbContacts

◆ restitution

PxReal PxContactPatch::restitution

Restitution coefficient.

◆ startContactIndex

PxU8 PxContactPatch::startContactIndex

◆ staticFriction

PxReal PxContactPatch::staticFriction

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