> For the complete documentation index, see [llms.txt](https://docs.gercstudio.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gercstudio.com/enemies/ai-controller/movement.md).

# Movement

### NavMesh Agent

The agent is responsible for the movement around the navmesh, and for avoiding obstacles. Therefore, it must match the enemy's size.

![](https://3854890582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf4aWZpqUiSipiEh-D6%2Fuploads%2FNNCpcvvc5oJoWb7MHW0z%2FScreenshot%202021-12-12%20at%2014.45.12.png?alt=media\&token=243e0306-a3ee-4c92-b9d7-4dc3dcadc1f6)

### Movement Parameters

![](https://3854890582-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lf4aWZpqUiSipiEh-D6%2Fuploads%2FS6gN5gFHWiU25I5avtdu%2FMP.png?alt=media\&token=01437b81-eb08-4f17-bd30-e4211287e5d2)

<mark style="color:green;">**Waypoints Behaviour**</mark> contains waypoints along which the enemy moves.

{% content-ref url="/pages/-LfFXMKIjfpgTNSsdil5" %}
[Waypoints](/enemies/adding-to-the-game/waypoints.md)
{% endcontent-ref %}

<mark style="color:green;">**Root Motion**</mark>

**Active** - the enemy speed is based on Root Motion animations.

**Inactive** - you can set the speed manually.

<mark style="color:green;">**All Directions Movement**</mark>

If this feature is **active**, the enemy moves in different directions during the attack state; **otherwise**, the enemy will standstill.
