Blud_Mage/Scenes/Spawnables/AIs/ai_bat.gd
2023-10-10 18:29:06 -04:00

5 lines
134 B
GDScript

extends AITemplate
func getDirection(_position, _enemyPosition) -> Vector2:
return Vector2(_enemyPosition - _position).normalized()