this code should make the enemy go towards the player, but this enemy just following the player and stops when player stops, how to fix it? it feels like there is something wrong with this code and it just makes enemy follow player, but not go towards the player
extends CharacterBody2D
var motion = Vector2()
func _physics_process(delta):
var player = get_parent().get_node("player")
position += (player.position - position)/30
move_and_collide(motion)