# SetGoalRotation(AvatarIKGoal, Quaternion)

> Sets the rotation of this IK goal in world space.

## Definition

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

```csharp
public void SetGoalRotation(AvatarIKGoal index, Quaternion rot)
```

### Parameters

**** (\[AvatarIKGoal]\(/engine/6000.3/script-reference/unityengine/avatarikgoal)): The AvatarIKGoal that is queried.**** (\[Quaternion]\(/engine/6000.3/script-reference/unityengine/quaternion)): The rotation of this IK goal.

### Remarks

Additional Resources: [AnimationHumanStream.SolveIK](/engine/6000.3/script-reference/unityengine/animations/animationhumanstream/solveik.md).
