1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-29 03:24:23 +00:00

Delete MatchMousePosition, as it's already implemented by MoveTowardsMouse with an infinite radius and speed

This commit is contained in:
Steffo 2024-04-14 07:22:43 +02:00
parent 6df6455505
commit 7568c5bcd7
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -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