GSAICohesion

Extends: GSAIGroupBehavior < GSAISteeringBehavior

Description

Calculates an acceleration that attempts to move the agent towards the center of mass of the agents in the area defined by the GSAIProximity.

Functions

TypeName
boolfunc _report_neighbor(neighbor: GSAISteeringAgent) -> bool

Method Descriptions

_report_neighbor (virtual)

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.