> For the complete documentation index, see [llms.txt](https://malbersanimations.gitbook.io/animal-controller/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://malbersanimations.gitbook.io/animal-controller/main-components/ai/ai-target.md).

# AI Target

## Overview

The Ai Target component is used to let the AI Animal know what is the Stopping distance of a target. When a transform is assigned as the target to follow, it will use the AI Target **Stopping distance** instead of the AI Animal Control[ **Default Stopping Distance**](/animal-controller/main-components/ai/ai-animal-control.md#stopping-distance)**.**

<figure><img src="/files/Xz4bdun1ED0JGyIC0Ma1" alt=""><figcaption></figcaption></figure>

This is used to differentiate animals by its size. For example, a larger animal may have a larger stopping distance and therefore requires an override by using this component.

![](/files/-MZG5Gut90bTviZ39QFj)

<figure><img src="/files/p8Ls9VgjP1odPoxQxQaa" alt=""><figcaption></figcaption></figure>

## Parameters

### Point Type

Is the Ai Target on the ground, water,  air or underwater

### Stopping Distance

Distance for AI driven animals to stop when it has arrived to the gameobject when is set as a Target.

### Slowing Distance

Distance for AI driven animals to start slowing it's speed when arriving to this gameobject. If set to 0 or lesser than the stopping distance, the slowing movement logic is ignored.

### Center

Offset to correct the center position of the gameobject.

### Height

Default height for the waypoints

### Arrive Look At

When the animal arrives to the target, do we rotate the animal so that it looks at the center of the AI target?

<figure><img src="/files/tmqTikljZ4qYZe1zXcJC" alt=""><figcaption><p>If the AI Animal is inside the Stopping distance radius then it will turn to see the Target.</p></figcaption></figure>

## Events

### On Target Arrived

Invoked when the target arrives to this gameobject
