PxContactPairVelocity#

Defined in include/PxSimulationEventCallback.h

struct PxContactPairVelocity : public PxContactPairExtraDataItem#

Velocities of the contact pair rigid bodies.

This struct is shared by multiple types of extra data items. The type field allows to distinguish between them:

Note

For static rigid bodies, the velocities will be set to zero.

Public Functions

inline PxContactPairVelocity()#

Public Members

PxVec3 linearVelocity[2]#

The linear velocity of the rigid bodies.

PxVec3 angularVelocity[2]#

The angular velocity of the rigid bodies.

PxU8 type#

The type of the extra data stream item.