GSAIProximity (abstract)

Extends: Reference

Description

Base container type that stores data to find the neighbors of an agent.

Properties

TypeName
GSAISteeringAgentagent
Arrayagents

Functions

TypeName
intfunc _find_neighbors(_callback: FuncRef) -> int

Property Descriptions

agent

var agent: GSAISteeringAgent

The owning agent whose neighbors are found in the group

agents

var agents: Array

The agents who are part of this group and could be potential neighbors

Method Descriptions

_find_neighbors (virtual)

func _find_neighbors(_callback: FuncRef) -> int

Returns a number of neighbors based on a callback function.

_find_neighbors calls callback for each agent in the agents array and adds one to the count if its callback returns true.