Navigation actions
3 actions in the Navigation category. Each block mirrors how the action appears in the editor's sidebar.
Move Along Path
Physics
Move Along Path Navigation
Node not set | Agent not set | Speed 100.0
Moves the body one step along the route a navigation agent planned, so it walks around walls instead of into them. Set Path Target picks the destination first.
| Input | Type | Default | Description |
|---|---|---|---|
| Node | Node | - | The body to move along the path. Leave it empty to move this node. |
| Agent | Node | - | The NavigationAgent2D or NavigationAgent3D node that plans the route. |
| Speed | float | 100.0 | How fast to follow the route, in pixels per second in 2D and in world units per second in 3D. |
Reached Target
Every Frame
Reached Target Navigation
not set | → Yes | → No
Answers whether the navigation agent already arrived at the target it was given. It can branch on the answer or hand it to a field that takes a yes or no.
| Input | Type | Default | Description |
|---|---|---|---|
| Agent | Node | - | The NavigationAgent2D or NavigationAgent3D node that plans the route. |
| Output | Type | Description |
|---|---|---|
| Yes | bool | Where to store whether the agent already arrived. |
| Branch | Goes to |
|---|---|
| Yes | Where to go once the agent arrived at the target. |
| No | Where to go while the agent is still on its way. |
Set Path Target
Every Frame
Set Path Target Navigation
Agent not set | Target 0
Tells a navigation agent where to walk to, and the agent works out a route around the walls. Move Along Path then follows that route.
| Input | Type | Default | Description |
|---|---|---|---|
| Agent | Node | - | The NavigationAgent2D or NavigationAgent3D node that plans the route. |
| Target | Variant | 0 | The point to walk to, a Vector2 in 2D and a Vector3 in 3D. |