2023-01-14 10:08:49 +01:00
|
|
|
class_name GDGSAIGroupBehavior
|
|
|
|
extends GDGSAISteeringBehavior
|
2023-01-14 10:05:13 +01:00
|
|
|
|
|
|
|
# Base type for group-based steering behaviors.
|
|
|
|
# @category - Base types
|
|
|
|
|
|
|
|
# Container to find neighbors of the agent and calculate group behavior.
|
2023-01-14 10:08:49 +01:00
|
|
|
var proximity : GDGSAIProximity
|
2023-01-14 10:05:13 +01:00
|
|
|
|
|
|
|
var _callback : FuncRef = funcref(self, "_report_neighbor")
|
|
|
|
|
|
|
|
func get_callback() -> FuncRef:
|
|
|
|
return _callback
|
|
|
|
|
|
|
|
# Internal callback for the behavior to define whether or not a member is
|
|
|
|
# relevant
|
|
|
|
# @tags - virtual
|
2023-01-14 10:08:49 +01:00
|
|
|
func _report_neighbor(_neighbor : GDGSAISteeringAgent) -> bool:
|
2023-01-14 10:05:13 +01:00
|
|
|
return false
|