<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/IKRig/init(named:rootJoint:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation5IKRigV5named9rootJointACSS_AA16SkeletonResourceC0F0VtKcfc"
  },
  "title" : "init(named:rootJoint:)"
}
-->

# init(named:rootJoint:)

Creates an IK rig from a joint hierarchy.

```
init(named name: String, rootJoint: SkeletonResource.Joint) throws
```

## Parameters

`name`

The name to associate with the rig.

`rootJoint`

The root joint of the skeleton hierarchy to derive the rig from.

## Discussion> Throws: If the joint hierarchy contains invalid data.

---

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)