PxConstraintInfo

Defined in include/PxSimulationEventCallback.h

struct PxConstraintInfo

Descriptor for a broken constraint.

An array of these structs gets passed to the PxSimulationEventCallback::onConstraintBreak() report.

Public Functions

inline PxConstraintInfo()
inline PxConstraintInfo(PxConstraint *c, void *extRef, PxU32 t)

Public Members

PxConstraint *constraint

The broken constraint.

void *externalReference

The external object which owns the constraint (see PxConstraintConnector::getExternalReference())

PxU32 type

Unique type ID of the external object. Allows to cast the provided external reference to the appropriate type.