diff --git a/scripts/NPCEnemy.gd b/scripts/NPCEnemy.gd index a294a90..a8d6eda 100644 --- a/scripts/NPCEnemy.gd +++ b/scripts/NPCEnemy.gd @@ -40,7 +40,7 @@ func _process(_delta: float) -> void: func _physics_process(_delta): velocity = position.direction_to(target) * speed # look_at(target) - # FIXME want enemy to stop only when touching something, to stop vibrating + # FIXME want enemy to stop when touching something, to prevent vibrating if position.distance_to(target) > 10 and get_slide_collision_count() == prevCollisions: move_and_slide() prevCollisions = get_slide_collision_count()