Files
wretched/scripts/print_mesh_size.gd
2025-08-12 04:49:06 -04:00

8 lines
265 B
GDScript

extends MeshInstance3D
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
print("X "+str(self.mesh.get_aabb().size.x * 32))
print("Y "+str(self.mesh.get_aabb().size.y * 32))
print("Z "+str(self.mesh.get_aabb().size.z * 32))