NavMesh Agent Animator Synchronizer
Synchronizes a NavMeshAgent with Animator root motion each frame.
This action writes agent velocity from Animator delta motion and applies Animator root rotation to the agent transform.
Default update mode: Update Every Frame.
| Parameter | Description |
|---|---|
| NavMesh Agent | Agent to synchronize. |
| Animator | Animator providing deltaPosition and rootRotation. |
Notes
- Use this when root motion should drive agent movement.
- The action sets
agent.velocity = animator.deltaPosition / Time.deltaTime. - The action sets transform rotation to
animator.rootRotation.
Example
- Configure your Animator with root motion movement.
- Add NavMesh Agent Animator Synchronizer in an update state.
- Set NavMesh Agent and Animator references.
- Keep the action running while movement animation is active.