@tool
class_name EditorArrow extends MeshInstance3D

@export var target: Node3D


func _process(_delta: float) -> void:
	if is_instance_valid(target):
		look_at(target.global_position, global_basis.y)
		scale.z = global_position.distance_to(target.global_position)
	else:
		queue_free()
