Blud_Mage/Scenes/Spawnables/AIs/ai_bat.gd

5 lines
130 B
GDScript3
Raw Normal View History

2023-10-10 13:30:23 -04:00
extends AITemplate
func getDirection(position, enemyPosition) -> Vector2:
2023-10-10 14:54:21 -04:00
return Vector2(enemyPosition - position).normalized()