> 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/manimalanimatorsync-1.md).

# MAnimalAnimatorSync

## Overview

The MAnimal Animator sync what it does is to sync 2 animators (One master and  one Slave).

&#x20;It reads from the Master Animal Controller every time an Animator Parameter has changed and updates the values on the Slave Animator. The Master Animator needs to have a component that uses the **IMAnimator** and **IAnimatorStateCycle** interfaces. (The Animal component has it)

This is useful when you have props like wings in your character, and you need specific animations to be played when the character Jump, Fall, walks, etc.

<figure><img src="/files/ct7j6aiIWAyqhSkPy3cS" alt="" width="549"><figcaption></figcaption></figure>

## Parameters

### Master Animator

Reference for the Master Animator  to get the parameters values

### Slave Animator

Slave Animator to receive the parameter values

### Layer

Which Layer Index will be used to sync to the Slave Animator

### Resynchronize

When the Animator is playing a blendtree or a loopable animation. it will check if both Animator times are in sync. If not it will force a synchronization. This is needed for Float Animator Values.

### Threshold

Threshold to check if the slave animator is unsync

### StateCheck

Which State will be synced again

### Use Transform Offset

Enables the Offset position and rotation from the Master Animator. Since the Slave animator can have rootmotion this will re-position the gameobject on the correct position.

### PosOffset

Offset the position relative to the Master Animator

### RotOffset

Offset the rotation relative to the Master Animator


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://malbersanimations.gitbook.io/animal-controller/utilities/manimalanimatorsync-1.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
