PxD6JointCreate_Fixed

Defined in include/extensions/PxD6JointCreate.h

PxJoint *PxD6JointCreate_Fixed(PxPhysics &physics, PxRigidActor *actor0, const PxVec3 &localPos0, PxRigidActor *actor1, const PxVec3 &localPos1, bool useD6)

Helper function to create a fixed joint, using either a PxD6Joint or PxFixedJoint.

For fixed joints it is important that the joint frames have the same orientation. This helper function uses an identity rotation for both. It is also important that the joint frames have an equivalent position in world space. The function does not check this, so it is up to users to ensure that this is the case.

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

  • localPos0[in] The position 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

  • localPos1[in] The position of the joint relative to actor1

  • useD6[in] True to use a PxD6Joint, false to use a PxFixedJoint;

Returns

The created joint.