<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/IKRig/Constraint/parent(named:on:positionWeight:orientationWeight:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation5IKRigV10ConstraintV6parent5named2on14positionWeight011orientationI0AESS_SSs5SIMD3VySfGAMtFZ"
  },
  "title" : "parent(named:on:positionWeight:orientationWeight:)"
}
-->

# parent(named:on:positionWeight:orientationWeight:)

Creates a constraint with both a positional and an orientational demands.

```
static func parent(named name: String, on jointName: String, positionWeight: SIMD3<Float> = [1, 1, 1], orientationWeight: SIMD3<Float> = [1, 1, 1]) -> IKRig.Constraint
```

## Parameters

`name`

The rig unique name of the constraint

`jointName`

The name of the joint to constrain.

`positionWeight`

The weight of the position demand.

`orientationWeight`

The weight of the orientation demand.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)