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

# 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)
