---
title: "parent(named:on:positionWeight:orientationWeight:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/ikrig/constraint/parent(named:on:positionweight:orientationweight:)"
---

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

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

## Declaration

```swift
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.
