godot-steering-ai-framework/godot/addons/com.gdquest.godot-steering-ai-framework/Behaviors/GSAIEvade.gd

10 lines
247 B
GDScript3
Raw Normal View History

2020-01-29 17:04:04 +01:00
# Calculates acceleration to take an agent away from where a target agent is
# moving.
2020-04-03 02:31:59 +02:00
# @category - Individual behaviors
class_name GSAIEvade
extends GSAIPursue
func _get_modified_acceleration() -> float:
return -agent.linear_acceleration_max