definePhysicsPrismaticJoint#

Fully qualified name: usdex::core::definePhysicsPrismaticJoint

pxr::UsdPhysicsPrismaticJoint usdex::core::definePhysicsPrismaticJoint(
pxr::UsdPrim prim,
const pxr::UsdPrim &body0,
const pxr::UsdPrim &body1,
const JointFrame &frame,
const pxr::GfVec3f &axis = pxr::GfVec3f(1.0f, 0.0f, 0.0f),
std::optional<float> lowerLimit = std::nullopt,
std::optional<float> upperLimit = std::nullopt,
)#

Creates a prismatic joint, which acts as a slider along a single axis, connecting two rigid bodies.

This is an overloaded member function, provided for convenience. It differs from the above function only in what arguments it accepts.

Parameters:
  • prim – Prim to define the joint. The prim’s type will be set to UsdPhysicsPrismaticJoint.

  • body0 – The first body of the joint

  • body1 – The second body of the joint

  • frame – The position and rotation of the joint in the specified coordinate system.

  • axis – The axis of the joint.

  • lowerLimit – The lower limit of the joint (distance).

  • upperLimit – The upper limit of the joint (distance).

Returns:

UsdPhysicsPrismaticJoint schema wrapping the defined UsdPrim