@tool
class_name NoScale
extends Node3D

@export var target_node: Node3D

func _process(_delta: float) -> void:
	if not target_node or not get_parent():
		return
		
	var parent = get_parent()
	
	# Store parent's current scale
	var parent_current_scale = parent.scale
	
	# Copy target's position and rotation to parent
	parent.global_position = target_node.global_position
	parent.global_rotation = target_node.global_rotation
	
	# Restore parent's original scale
	parent.scale = parent_current_scale 
