Extends: Reference
Base container type that stores data to find the neighbors of an agent.
Type | Name |
---|---|
GSAISteeringAgent | agent |
Array | agents |
Type | Name |
---|---|
int | func _find_neighbors(_callback: FuncRef) -> int |
var agent: GSAISteeringAgent
The owning agent whose neighbors are found in the group
var agents: Array
The agents who are part of this group and could be potential neighbors
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.