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

# orient(named:on:orientationWeight:)

Creates a constraint with only an orientation demand.

## Declaration

```swift
static func orient(named name: String, on jointName: String, 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.
- `orientationWeight`: The weight of the orientation demand.
