# Sandbox.ModelBuilder.AddBone

## Overload 1

```csharp
void AddBone(Bone bone)
```

Adds a bone to the skeleton.

### Parameters

- `bone` (`Bone`): The bone to add.

## Overload 2

```csharp
ModelBuilder AddBone(string name, Vector3 position, Rotation rotation, string parentName = null)
```

Adds a bone to the skeleton.

### Parameters

- `name` (`string`): The bone name.
- `position` (`Vector3`): The position relative to the parent bone.
- `rotation` (`Rotation`): The rotation relative to the parent bone.
- `parentName` (`string`), default `null`: The parent bone name, or null for a root bone.

### Returns

`ModelBuilder`

Declared in [Sandbox.ModelBuilder](/api/Sandbox.ModelBuilder).
Assembly: `Sandbox.Engine`.
