> Vector2 direction_to(to: Vector2) const
> Returns the normalized vector pointing from this vector to to. This is equivalent to using (b - a).normalized().
gdfunc _physics_process(delta: float) -> void:
var direction := position.direction_to(player.position)
velocity = speed * direction
move_and_slide()
var direction := (player.position - position).normalized()