joint-no-multiple-body-targets#

Code

JT.003

Validator

latest+

Compatibility

openusd

Tags

Summary#

Body0 and Body1 relationships must not have more than one target.

Description#

UsdPhysicsJoint and its subtypes define two relationships: Body0 and Body1. Both relationships can target at most one prim.

Why is it required?#

  • If either relationship targets more prims the target used for simulation is undefined.

Examples#

# Invalid: One of the Body relationships have more than one target
def PhysicsFixedJoint "FixedJoint"
{
   rel physics:body1 = [</Cube0>, </Cube1>]
}

# Valid: Both relationships have at most one target
def PhysicsFixedJoint "FixedJoint"
{
   rel physics:body0 = </Cube0>
   rel physics:body1 = </Cube1>
}

How to comply#

Set Body0 and Body1 targets to at most one prim per relationship.

For More Information#