From 7568c5bcd755de8052510f719f0da6e18687faac Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 14 Apr 2024 07:22:43 +0200 Subject: [PATCH] Delete `MatchMousePosition`, as it's already implemented by `MoveTowardsMouse` with an infinite radius and speed --- behaviours/match_mouse_position.gd | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 behaviours/match_mouse_position.gd diff --git a/behaviours/match_mouse_position.gd b/behaviours/match_mouse_position.gd deleted file mode 100644 index d1885c8..0000000 --- a/behaviours/match_mouse_position.gd +++ /dev/null @@ -1,11 +0,0 @@ -extends Node -class_name MatchMousePosition - - -@onready var parent: Node2D = get_parent() -@onready var game := MainGame.get_ancestor(self) - - -func _physics_process(_delta: float) -> void: - var global_mouse_position: Vector2 = game.camera.get_global_mouse_position() - parent.global_position = global_mouse_position