# Mode Align

## Overview

When a mode is activated in the Animal, it will align with a nearby Animal or a Collider within a given radius.

<figure><img src="/files/TH2cy4vvfTMyCuVomHvp" alt="" width="561"><figcaption></figcaption></figure>

{% embed url="<https://streamable.com/l2w2l0>" %}

## Parameters (Alignment)

### Animal

Reference for the Animal using the Mode Align

### Search Radius&#x20;

Distance to find animals and colliders around the animal

### Distance

The radius used push closer/farther the Target when playing the Mode

### Align Time

Time needed to complete the alignment

### Front Offset&#x20;

The Offset of the Animal to use as a Pivot point for the orientation for the alignment

### Ignore Close

Ignore Moving the character if we are already too close to the target. Only apply the look at rotation

## Parameters (Filter By)

Layer

What layer to use while searching for a target to align

Tags

&#x20;Target needs to have any of the Malbers tags in order to activate the alignment &#x20;

Modes

What modes the main animal will check to activate the alignment &#x20;

Exclude Abilities

Abilities to ignore in the activation of the alignment &#x20;

Ignore States

Skip the alignment it the target animal is on any of these states (E.g. Death)


---

# 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/utilities/mode-align.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.
