definePhysicsRevoluteJoint#

Fully qualified name: usdex::core::definePhysicsRevoluteJoint

pxr::UsdPhysicsRevoluteJoint usdex::core::definePhysicsRevoluteJoint(
pxr::UsdPrim parent,
const std::string &name,
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 revolute joint, which acts as a hinge around 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:
  • parent – Prim below which to define the physics joint

  • name – Name of the physics joint

  • 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 rotation

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

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

Returns:

UsdPhysicsRevoluteJoint schema wrapping the defined UsdPrim