PxDistanceJointCreate#

Defined in include/extensions/PxDistanceJoint.h

PxDistanceJoint *PxDistanceJointCreate(
PxPhysics &physics,
PxRigidActor *actor0,
const PxTransform &localFrame0,
PxRigidActor *actor1,
const PxTransform &localFrame1,
)#

Create a distance Joint.

See also

PxDistanceJoint

Parameters:
  • physics – [in] The physics SDK

  • actor0 – [in] An actor to which the joint is attached. NULL may be used to attach the joint to a specific point in the world frame

  • localFrame0 – [in] The position and orientation of the joint relative to actor0

  • actor1 – [in] An actor to which the joint is attached. NULL may be used to attach the joint to a specific point in the world frame

  • localFrame1 – [in] The position and orientation of the joint relative to actor1