PxSolverContactDesc Struct Reference

#include <PxSolverDefs.h>

Inheritance diagram for PxSolverContactDesc:
Collaboration diagram for PxSolverContactDesc:

Public Member Functions

 PX_ALIGN (16, Sc::ShapeInteraction *shapeInteraction)
 Pointer to share interaction. Used for force threshold reports in solver. Set to NULL if using immediate mode. More...
 

Public Attributes

Gu::ContactPoint * contacts
 The start of the contacts for this pair. More...
 
PxU32 numContacts
 The total number of contacs this pair references. More...
 
bool hasMaxImpulse
 Defines whether this pairs has maxImpulses clamping enabled. More...
 
bool disableStrongFriction
 Defines whether this pair disables strong friction (sticky friction correlation) More...
 
bool hasForceThresholds
 Defines whether this pair requires force thresholds. More...
 
PxReal restDistance
 A distance at which the solver should aim to hold the bodies separated. Default is 0. More...
 
PxReal maxCCDSeparation
 A distance used to configure speculative CCD behavior. Default is PX_MAX_F32. Set internally in PhysX for bodies with eENABLE_SPECULATIVE_CCD on. Do not set directly! More...
 
PxU8 * frictionPtr
 InOut: Friction patch correlation data. Set each frame by solver. Can be retained for improved behaviour or discarded each frame. More...
 
PxU8 frictionCount
 The total number of friction patches in this pair. More...
 
PxReal * contactForces
 Out: A buffer for the solver to write applied contact forces to. More...
 
PxU32 startFrictionPatchIndex
 Start index of friction patch in the correlation buffer. Set by friction correlation. More...
 
PxU32 numFrictionPatches
 Total number of friction patches in this pair. Set by friction correlation. More...
 
PxU32 startContactPatchIndex
 The start index of this pair's contact patches in the correlation buffer. For internal use only. More...
 
PxU16 numContactPatches
 Total number of contact patches. More...
 
PxU16 axisConstraintCount
 Axis constraint count. Defines how many constraint rows this pair has produced. Useful for statistical purposes. More...
 
PxU8 pad [16 - sizeof(void *)]
 
- Public Attributes inherited from PxSolverConstraintPrepDescBase
PxConstraintInvMassScale invMassScales
 In: The local mass scaling for this pair. More...
 
PxSolverConstraintDescdesc
 Output: The PxSolverConstraintDesc filled in by contact prep. More...
 
const PxSolverBodybody0
 In: The first body. Stores velocity information. Unused unless contact involves articulations. More...
 
const PxSolverBodybody1
 In: The second body. Stores velocity information. Unused unless contact involves articulations. More...
 
const PxSolverBodyDatadata0
 In: The first PxSolverBodyData. Stores mass and miscellaneous information for the first body. More...
 
const PxSolverBodyDatadata1
 In: The second PxSolverBodyData. Stores mass and miscellaneous information for the second body. More...
 
PxTransform bodyFrame0
 In: The world-space transform of the first body. More...
 
PxTransform bodyFrame1
 In: The world-space transform of the second body. More...
 
BodyState bodyState0
 In: Defines what kind of actor the first body is. More...
 
BodyState bodyState1
 In: Defines what kind of actor the second body is. More...
 

Additional Inherited Members

- Public Types inherited from PxSolverConstraintPrepDescBase
enum  BodyState { eDYNAMIC_BODY = 1 << 0, eSTATIC_BODY = 1 << 1, eKINEMATIC_BODY = 1 << 2, eARTICULATION = 1 << 3 }
 

Member Function Documentation

◆ PX_ALIGN()

PxSolverContactDesc::PX_ALIGN ( 16  ,
Sc::ShapeInteraction *  shapeInteraction 
)

Pointer to share interaction. Used for force threshold reports in solver. Set to NULL if using immediate mode.

Member Data Documentation

◆ axisConstraintCount

PxU16 PxSolverContactDesc::axisConstraintCount

Axis constraint count. Defines how many constraint rows this pair has produced. Useful for statistical purposes.

◆ contactForces

PxReal* PxSolverContactDesc::contactForces

Out: A buffer for the solver to write applied contact forces to.

◆ contacts

Gu::ContactPoint* PxSolverContactDesc::contacts

The start of the contacts for this pair.

◆ disableStrongFriction

bool PxSolverContactDesc::disableStrongFriction

Defines whether this pair disables strong friction (sticky friction correlation)

◆ frictionCount

PxU8 PxSolverContactDesc::frictionCount

The total number of friction patches in this pair.

◆ frictionPtr

PxU8* PxSolverContactDesc::frictionPtr

InOut: Friction patch correlation data. Set each frame by solver. Can be retained for improved behaviour or discarded each frame.

◆ hasForceThresholds

bool PxSolverContactDesc::hasForceThresholds

Defines whether this pair requires force thresholds.

◆ hasMaxImpulse

bool PxSolverContactDesc::hasMaxImpulse

Defines whether this pairs has maxImpulses clamping enabled.

◆ maxCCDSeparation

PxReal PxSolverContactDesc::maxCCDSeparation

A distance used to configure speculative CCD behavior. Default is PX_MAX_F32. Set internally in PhysX for bodies with eENABLE_SPECULATIVE_CCD on. Do not set directly!

◆ numContactPatches

PxU16 PxSolverContactDesc::numContactPatches

Total number of contact patches.

◆ numContacts

PxU32 PxSolverContactDesc::numContacts

The total number of contacs this pair references.

◆ numFrictionPatches

PxU32 PxSolverContactDesc::numFrictionPatches

Total number of friction patches in this pair. Set by friction correlation.

◆ pad

PxU8 PxSolverContactDesc::pad[16 - sizeof(void *)]

◆ restDistance

PxReal PxSolverContactDesc::restDistance

A distance at which the solver should aim to hold the bodies separated. Default is 0.

◆ startContactPatchIndex

PxU32 PxSolverContactDesc::startContactPatchIndex

The start index of this pair's contact patches in the correlation buffer. For internal use only.

◆ startFrictionPatchIndex

PxU32 PxSolverContactDesc::startFrictionPatchIndex

Start index of friction patch in the correlation buffer. Set by friction correlation.


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