Blud_Mage/Scenes/Spawnables/AIs/ai_bat.gd

5 lines
134 B
GDScript3
Raw Normal View History

2023-10-10 13:30:23 -04:00
extends AITemplate
2023-10-10 18:29:06 -04:00
func getDirection(_position, _enemyPosition) -> Vector2:
return Vector2(_enemyPosition - _position).normalized()