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
class_name GSAIEvade
|
|
extends GSAIPursue
|
|
|
|
# Calculates acceleration to take an agent away from where a target agent is
|
|
# moving.
|
|
# @category - Individual behaviors
|
|
|
|
func _get_modified_acceleration() -> float:
|
|
return -agent.linear_acceleration_max
|