# SetBoneLocalRotation(HumanBodyBones, Quaternion)

> Sets local rotation of a human bone during a IK pass.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.AnimationModule

```csharp
public void SetBoneLocalRotation(HumanBodyBones humanBoneId, Quaternion rotation)
```

### Parameters

**** (\[HumanBodyBones]\(/engine/6000.0/script-reference/unityengine/humanbodybones)): The human bone Id.**** (\[Quaternion]\(/engine/6000.0/script-reference/unityengine/quaternion)): The local rotation.

### Remarks

Can be used to create rotation IK goals for any human bone. Ex: Control lower and upper body independantly by setting Hips and Spine local rotation during an IK pass.
