navigation_add_obstacle
Add a navigation obstacle to a Godot scene to define areas agents cannot traverse. Specify type, radius, and parent node.
Instructions
Add a navigation obstacle 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 obstacle_name: Name for the new obstacle node obstacle_type: Type of obstacle (NavigationObstacle2D, NavigationObstacle3D, default: NavigationObstacle2D) radius: Obstacle radius (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 | ||
| obstacle_name | Yes | ||
| obstacle_type | No | NavigationObstacle2D | |
| radius | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |