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

![](/files/9HmG6S8zZknSJrXVIETl)

### Movement Parameters

![](/files/QaYpWfi3Fhi6m6M3rS2S)

<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.


---

# 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://docs.gercstudio.com/enemies/ai-controller/movement.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.
