Blud_Mage/Scenes/Spawnables/AIs/ai_bat.gd
2023-10-10 14:54:21 -04:00

5 lines
130 B
GDScript

extends AITemplate
func getDirection(position, enemyPosition) -> Vector2:
return Vector2(enemyPosition - position).normalized()