# GetGoalLocalRotation(AvatarIKGoal)

> Returns the rotation of this IK goal relative to the root.

## Definition

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

```csharp
public Quaternion GetGoalLocalRotation(AvatarIKGoal index)
```

### Parameters

**** (\[AvatarIKGoal]\(/engine/6000.5/script-reference/unityengine/avatarikgoal)): The AvatarIKGoal that is queried.

### Returns

| Type                                                                    | Description                   |
| ----------------------------------------------------------------------- | ----------------------------- |
| [Quaternion](/engine/6000.5/script-reference/unityengine/quaternion.md) | The rotation of this IK goal. |

### Remarks

Some playable like [AnimationClipPlayable](/engine/6000.5/script-reference/unityengine/animations/animationclipplayable.md) can generate IK goals. This function can be used to retrieve goal generate from a previous playable in the graph.
