<!--
{
  "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/IKComponent/Constraint",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation11IKComponentV10ConstraintC"
  },
  "title" : "IKComponent.Constraint"
}
-->

# IKComponent.Constraint

The update stage object that lets you read and update the current settings of a single constraint in an IK solver.

```
class Constraint
```

## Overview

The settings this object exposes are the runtime editable values of the solver constraint.
Initial values are set in [`IKRig.Constraint`](/documentation/RealityKit/IKRig/Constraint).

## Topics

### Structures

[`struct DemandOptions`](/documentation/RealityKit/IKComponent/Constraint/DemandOptions)

Flags for the different demands types that can be active in a single constraint.

### Instance Properties

[`var animationOverrideWeight: (position: Float, rotation: Float)`](/documentation/RealityKit/IKComponent/Constraint/animationOverrideWeight)

The blending weights between the FK demand and the your target per demand type.

[`var demands: IKComponent.Constraint.DemandOptions`](/documentation/RealityKit/IKComponent/Constraint/demands)

The set of the active demands of the constraint.

[`let id: IKComponent.Constraint.ID`](/documentation/RealityKit/IKComponent/Constraint/id)

ID of the constraint, that is unique within the solver instance.

[`var jointID: IKComponent.Joint.ID`](/documentation/RealityKit/IKComponent/Constraint/jointID)

The identifier of the constrained rig joint.

[`var lookAtTargetPosition: SIMD3<Float>`](/documentation/RealityKit/IKComponent/Constraint/lookAtTargetPosition)

The point demand which the look-at constraint uses to generate a new orientation demand.

[`var name: String`](/documentation/RealityKit/IKComponent/Constraint/name)

The name of the constraint as defined in the rig.

[`var offset: Transform`](/documentation/RealityKit/IKComponent/Constraint/offset)

The offset applied on top of the target transform before the solve.

[`var target: Transform`](/documentation/RealityKit/IKComponent/Constraint/target)

The packed targets for the positional and orientational demands in model space.

## Relationships

### Conforms To

[`Identifiable`](/documentation/Swift/Identifiable)

---

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)