# Sandbox.SceneModel.GetBoneLocalTransform

## Overload 1

```csharp
Transform GetBoneLocalTransform(int boneIndex)
```

Returns the local space transform of a bone by its index.

### Parameters

- `boneIndex` (`int`): Index of the bone to calculate transform of.

### Returns

`Transform`: The local space transform, or an identity transform on failure.

## Overload 2

```csharp
Transform GetBoneLocalTransform(string boneName)
```

Returns the local space transform of a bone by its name.

### Parameters

- `boneName` (`string`): Name of the bone to calculate transform of.

### Returns

`Transform`: The local space transform, or an identity transform on failure.

Declared in [Sandbox.SceneModel](/api/Sandbox.SceneModel).
Assembly: `Sandbox.Engine`.
