---
title: "init(_:restPoseTransform:children:)"
framework: realitykit
role: symbol
role_heading: Initializer
path: "realitykit/skeletonresource/joint/init(_:restposetransform:children:)"
---

# init(_:restPoseTransform:children:)

Creates a joint with the provided name, rest pose transform, and optional children.

## Declaration

```swift
init(_ name: String, restPoseTransform: Transform = .identity, @SkeletonResource.JointBuilder children: () throws -> [SkeletonResource.Joint] = { [] }) throws
```

## Parameters

- `name`: The unique name of the new joint
- `restPoseTransform`: The local space transformation relative to the parent joint
- `children`: A result builder closure that returns child joints

## Discussion

Discussion note: If any children share the same name.
