# GSAIAvoidCollisions

**Extends:** GSAIGroupBehavior < GSAISteeringBehavior

### Description

Steers the agent to avoid obstacles in its path. Approximates obstacles as spheres.

### Functions

| Type | Name                                                         |
| ---- | ------------------------------------------------------------ |
| bool | func \_report\_neighbor(neighbor: GSAISteeringAgent) -> bool |

### Method Descriptions

#### \_report\_neighbor (virtual)

```gdscript
func _report_neighbor(neighbor: GSAISteeringAgent) -> bool
```

Callback for the proximity to call when finding neighbors. Keeps track of every `neighbor` that was found but only keeps the one the owning agent will most likely collide with.


---

# 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://gdquest.gitbook.io/godot-3-steering-ai-framework-reference/code-reference/gsaiavoidcollisions.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.
