physx::Gu::ContactPoint Struct Reference

#include <GuContactPoint.h>

Public Member Functions

 PX_ALIGN (16, PxVec3 normal)
 The normal of the contacting surfaces at the contact point. More...
 
 PX_ALIGN (16, PxVec3 point)
 The point of contact between the shapes, in world space. More...
 
 PX_ALIGN (16, PxVec3 targetVel)
 

Public Attributes

PxReal separation
 The separation of the shapes at the contact point. A negative separation denotes a penetration. More...
 
PxReal maxImpulse
 The max impulse permitted at this point. More...
 
PxReal staticFriction
 The static friction coefficient. More...
 
PxU8 materialFlags
 Material flags for this contact (eDISABLE_FRICTION, eDISABLE_STRONG_FRICTION). More...
 
PxU16 forInternalUse
 internal structure used for internal use only More...
 
PxU32 internalFaceIndex1
 The surface index of shape 1 at the contact point. This is used to identify the surface material. More...
 
PxReal dynamicFriction
 The dynamic friction coefficient. More...
 
PxReal restitution
 The restitution coefficient. More...
 

Member Function Documentation

◆ PX_ALIGN() [1/3]

physx::Gu::ContactPoint::PX_ALIGN ( 16  ,
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.

◆ PX_ALIGN() [2/3]

physx::Gu::ContactPoint::PX_ALIGN ( 16  ,
PxVec3  point 
)

The point of contact between the shapes, in world space.

◆ PX_ALIGN() [3/3]

physx::Gu::ContactPoint::PX_ALIGN ( 16  ,
PxVec3  targetVel 
)

Member Data Documentation

◆ dynamicFriction

PxReal physx::Gu::ContactPoint::dynamicFriction

The dynamic friction coefficient.

◆ forInternalUse

PxU16 physx::Gu::ContactPoint::forInternalUse

internal structure used for internal use only

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

◆ internalFaceIndex1

PxU32 physx::Gu::ContactPoint::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.
This value must be directly after internalFaceIndex0 in memory

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

◆ materialFlags

PxU8 physx::Gu::ContactPoint::materialFlags

Material flags for this contact (eDISABLE_FRICTION, eDISABLE_STRONG_FRICTION).

See also
PxMaterialFlag

◆ maxImpulse

PxReal physx::Gu::ContactPoint::maxImpulse

The max impulse permitted at this point.

◆ restitution

PxReal physx::Gu::ContactPoint::restitution

The restitution coefficient.

◆ separation

PxReal physx::Gu::ContactPoint::separation

The separation of the shapes at the contact point. A negative separation denotes a penetration.

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

◆ staticFriction

PxReal physx::Gu::ContactPoint::staticFriction

The static friction coefficient.


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