mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2024-11-14 04:57:19 +01:00
10 lines
247 B
GDScript
10 lines
247 B
GDScript
# Calculates acceleration to take an agent away from where a target agent is
|
|
# moving.
|
|
# @category - Individual behaviors
|
|
class_name GSAIEvade
|
|
extends GSAIPursue
|
|
|
|
|
|
func _get_modified_acceleration() -> float:
|
|
return -agent.linear_acceleration_max
|