navigation_add_agent
Add a navigation agent (2D or 3D) to a Godot scene, specifying parent node, name, type, max speed, and radius for pathfinding and obstacle avoidance.
Instructions
Add a navigation agent to a scene.
Category: Navigation
Args: project_path: Path to the Godot project directory scene_path: Path to the scene file (relative to project) parent_node_path: Path to the parent node agent_name: Name for the new agent node agent_type: Type of agent (NavigationAgent2D, NavigationAgent3D, default: NavigationAgent2D) max_speed: Maximum movement speed (default: 200.0) radius: Agent radius for avoidance (default: 10.0)
Returns: Success message or error description
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_path | Yes | ||
| scene_path | Yes | ||
| parent_node_path | Yes | ||
| agent_name | Yes | ||
| agent_type | No | NavigationAgent2D | |
| max_speed | No | ||
| radius | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |