RavEngine
Loading...
Searching...
No Matches
physx::PxContactPatch Struct Reference

Header for a 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)
 Modifiers for scaling the inertia of the involved bodies.
 
 PX_ALIGN (16, PxVec3 normal)
 Contact normal.
 

Public Attributes

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]
 

Detailed Description

Header for a 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 

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

Member Data Documentation

◆ materialFlags

PxU8 physx::PxContactPatch::materialFlags

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

See also
PxMaterialFlag, PxCombineMode

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