Files

12 lines
499 B
GDScript
Raw Permalink Normal View History

2026-09-12 11:01:37 +02:00
extends SceneTree
func _initialize() -> void:
call_deferred("run")
func run() -> void:
for id in ["ak47","ppsh41","sks","makarov","tokarev"]:
var model := (load("res://assets/soviet/%s.glb" % id) as PackedScene).instantiate()
root.add_child(model)
for mesh: MeshInstance3D in model.find_children("*","MeshInstance3D",true,false):
print(id," ",mesh.name," transform=",mesh.global_transform," bounds=",mesh.mesh.get_aabb()," surfaces=",mesh.mesh.get_surface_count())
model.free()
quit()