# Calculates acceleration to take an agent directly away from a target agent. class_name GSTFlee extends GSTSeek func _init(agent: GSTSteeringAgent, target: GSTAgentLocation).(agent, target) -> void: pass func _calculate_steering(acceleration: GSTTargetAcceleration) -> void: acceleration.linear = ( (agent.position - target.position).normalized() * agent.linear_acceleration_max) acceleration.angular = 0