navigation_manage
Set up 2D/3D navigation regions, attach agents, and bake meshes to enable pathfinding in Godot.
Instructions
2D and 3D Navigation and Pathfinding.
Ops: • setup_region_2d(parent_path="", name="NavigationRegion2D", polygon=None, cell_size=1.0, agent_radius=10.0, parsed_geometry_type="mesh_instances_and_colliders") Setup NavigationRegion2D with NavigationPolygon, boundary vertices, and geometry parsing configuration in one undo action. • attach_agent_2d(node_path, agent_name="NavigationAgent2D", radius=16.0, max_speed=150.0, path_desired_distance=20.0, target_desired_distance=20.0, avoidance_enabled=True) Attach and configure NavigationAgent2D under character/enemy node. • bake_2d(region_path, on_thread=False) Trigger in-editor baking of 2D navigation polygon. • setup_region_3d(parent_path="", name="NavigationRegion3D", cell_size=0.25, cell_height=0.25, agent_radius=0.5, agent_height=1.8) Setup NavigationRegion3D with NavigationMesh in one undo action. • attach_agent_3d(node_path, agent_name="NavigationAgent3D", radius=0.5, height=1.8, max_speed=5.0, path_desired_distance=1.0, target_desired_distance=1.0, avoidance_enabled=True) Attach and configure NavigationAgent3D under character/enemy node. • bake_3d(region_path, on_thread=False) Trigger in-editor baking of 3D navigation mesh.
Canonical call shape: {"op": "<verb>", "params": {...}}. Flat op parameters are accepted as a compatibility alias when the client transmits them; op and session_id remain top-level.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| params | No | ||
| session_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||