godot-steering-ai-framework/godot/addons/com.gdquest.godot-steering-ai-framework/GSAIGroupBehavior.gd

19 lines
527 B
GDScript3
Raw Normal View History

# Base type for group-based steering behaviors.
2020-04-03 02:31:59 +02:00
# @category - Base types
class_name GSAIGroupBehavior
extends GSAISteeringBehavior
# Container to find neighbors of the agent and calculate group behavior.
var proximity : GSAIProximity
var _callback : FuncRef = funcref(self, "_report_neighbor")
2023-01-13 20:30:27 +01:00
func get_callback() -> FuncRef:
return _callback
# Internal callback for the behavior to define whether or not a member is
# relevant
2020-04-03 02:31:59 +02:00
# @tags - virtual
func _report_neighbor(_neighbor : GSAISteeringAgent) -> bool:
return false