Extends: GSAIGroupBehavior < GSAISteeringBehavior
Calculates an acceleration that attempts to move the agent towards the center
of mass of the agents in the area defined by the GSAIProximity
.
Type | Name |
---|---|
bool | func _report_neighbor(neighbor: GSAISteeringAgent) -> bool |
func _report_neighbor(neighbor: GSAISteeringAgent) -> bool
Callback for the proximity to call when finding neighbors. Adds neighbor
’s position
to the center of mass of the group.