# 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://malbersanimations.gitbook.io/animal-controller/main-components/ai/ai-target.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
