5 lines
130 B
GDScript
5 lines
130 B
GDScript
extends AITemplate
|
|
|
|
func getDirection(position, enemyPosition) -> Vector2:
|
|
return Vector2(enemyPosition - position).normalized()
|