mirror of
https://github.com/Relintai/godot-steering-ai-framework.git
synced 2025-02-03 22:45:55 +01:00
10 lines
251 B
GDScript
10 lines
251 B
GDScript
class_name GDGSAIEvade
|
|
extends GDGSAIPursue
|
|
|
|
# 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
|