# GetGoalPosition(AvatarIKGoal)

> Returns the position of this IK goal in world space.

## Definition

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

```csharp
public Vector3 GetGoalPosition(AvatarIKGoal index)
```

### Parameters

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

### Returns

| Type                                                              | Description                   |
| ----------------------------------------------------------------- | ----------------------------- |
| [Vector3](/engine/6000.5/script-reference/unityengine/vector3.md) | The position 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.
