PxContact.h File Reference
This graph shows which files directly or indirectly include this file:
PxContactModifyCallback.h PxPhysicsAPI.h PxSimulationEventCallback.h GuContactBuffer.h PxCollisionDefs.h PxImmediateMode.h

Go to the source code of this file.

Classes

struct  PxMassModificationProps
 
struct  PxContactPatch
 Header for contact patch where all points share same material and normal. More...
 
struct  PxContact
 Contact point data including face (feature) indices. More...
 
struct  PxExtendedContact
 
struct  PxModifiableContact
 A modifiable contact point. This has additional fields per-contact to permit modification by user. More...
 
struct  PxContactStreamIterator
 A class to iterate over a compressed contact stream. This supports read-only access to the various contact formats. More...
 

Macros

#define PXC_CONTACT_NO_FACE_INDEX   0xffffffff
 

Enumerations

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
}
 

Functions

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

Variables

PxReal mInvMassScale0
 
PxReal mInvInertiaScale0
 
PxReal mInvMassScale1
 
PxReal mInvInertiaScale1
 
PxReal restitution
 Restitution coefficient. More...
 
PxReal dynamicFriction
 dynamic friction coefficient More...
 
PxReal staticFriction
 static friction coefficient More...
 
PxU8 startContactIndex
 
PxU8 nbContacts
 
PxU8 materialFlags
 Material Flags. More...
 
PxU8 internalFlags
 
PxU16 materialIndex0
 Shape A's material index. More...
 
PxU16 materialIndex1
 Shape B's material index. More...
 
PxVec3 contact
 Contact point in world space. More...
 
PxReal separation
 Separation value (negative implies penetration). More...
 
PxReal maxImpulse
 Maximum impulse. More...
 
struct PxContactStreamIterator PX_ALIGN_SUFFIX
 

Macro Definition Documentation

◆ PXC_CONTACT_NO_FACE_INDEX

Enumeration Type 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 

Function Documentation

◆ PX_ALIGN() [1/2]

PX_ALIGN_SUFFIX::PX_ALIGN ( 16  ,
PxMassModificationProps  mMassModification 
)

◆ PX_ALIGN() [2/2]

PX_ALIGN ( 16  ,
PxVec3  normal 
)

Contact normal.

Target velocity.

◆ PX_ALIGN_SUFFIX()

struct PxMassModificationProps PX_ALIGN_SUFFIX ( 16  )

Variable Documentation

◆ contact

◆ dynamicFriction

PxReal dynamicFriction

dynamic friction coefficient

◆ internalFlags

PxU8 internalFlags

◆ materialFlags

PxU32 materialFlags

Material Flags.

◆ materialIndex0

◆ materialIndex1

PxU16 materialIndex1

Shape B's material index.

Referenced by PxContactStreamIterator::getMaterialIndex1().

◆ maxImpulse

PxReal maxImpulse

Maximum impulse.

◆ mInvInertiaScale0

PxReal mInvInertiaScale0

◆ mInvInertiaScale1

PxReal mInvInertiaScale1

◆ mInvMassScale0

PxReal mInvMassScale0

◆ mInvMassScale1

PxReal mInvMassScale1

◆ nbContacts

◆ PX_ALIGN_SUFFIX

struct PxContactStreamIterator PX_ALIGN_SUFFIX

◆ restitution

PxReal restitution

Restitution coefficient.

◆ separation

PxReal separation

Separation value (negative implies penetration).

Referenced by physx::Gu::ContactBuffer::contact().

◆ startContactIndex

PxU8 startContactIndex

◆ staticFriction

PxReal staticFriction

static friction coefficient