TowerGame/objects/ItemPile.tscn

53 lines
20 KiB
Plaintext
Raw Normal View History

2025-05-12 11:21:38 +01:00
[gd_scene load_steps=8 format=3 uid="uid://b7jafay5r2ym5"]
[ext_resource type="Script" uid="uid://b742u7cr6efqm" path="res://scripts/item_pile.gd" id="1_tosru"]
[ext_resource type="Resource" uid="uid://dbkxys3mr5u80" path="res://items/metal.tres" id="2_gcf8n"]
[ext_resource type="ArrayMesh" uid="uid://c6yj8uwsgqxv0" path="res://assets/models/Ingot.obj" id="3_ct4c2"]
[ext_resource type="Script" uid="uid://c4fquatkjmsgu" path="res://scripts/building_components/producer.gd" id="4_gcf8n"]
[sub_resource type="CylinderMesh" id="CylinderMesh_gcf8n"]
top_radius = 0.0
bottom_radius = 1.0
height = 1.0
radial_segments = 8
rings = 1
cap_top = false
cap_bottom = false
[sub_resource type="CylinderShape3D" id="CylinderShape3D_suxjt"]
height = 1.0
radius = 1.5
[sub_resource type="MultiMesh" id="MultiMesh_gcf8n"]
transform_format = 1
instance_count = 321
visible_instance_count = 321
mesh = ExtResource("3_ct4c2")
buffer = PackedFloat32Array(1, 0, 0, 0, 0, 1, 0, 1.65901, 0, 0, 1, 0, 1, 0, 0, 0.182632, 0, 1, 0, 1.49598, 0, 0, 1, 0.316328, 1, 0, 0, -0.182632, 0, 1, 0, 1.49598, 0, 0, 1, 0.316328, 1, 0, 0, -0.365265, 0, 1, 0, 1.49598, 0, 0, 1, 1.34196e-16, 1, 0, 0, -0.182632, 0, 1, 0, 1.49598, 0, 0, 1, -0.316328, 1, 0, 0, 0.182632, 0, 1, 0, 1.49598, 0, 0, 1, -0.316328, 1, 0, 0, 0.365265, 0, 1, 0, 1.49598, 0, 0, 1, 4.69912e-16, 1, 0, 0, 0.632657, 0, 1, 0, 1.33294, 0, 0, 1, 0.365265, 1, 0, 0, 0.365265, 0, 1, 0, 1.33294, 0, 0, 1, 0.632657, 1, 0, 0, 4.02588e-16, 0, 1, 0, 1.33294, 0, 0, 1, 0.730529, 1, 0, 0, -0.365265, 0, 1, 0, 1.33294, 0, 0, 1, 0.632657, 1, 0, 0, -0.632657, 0, 1, 0, 1.33294, 0, 0, 1, 0.365265, 1, 0, 0, -0.730529, 0, 1, 0, 1.33294, 0, 0, 1, 1.745e-15, 1, 0, 0, -0.632657, 0, 1, 0, 1.33294, 0, 0, 1, -0.365265, 1, 0, 0, -0.365265, 0, 1, 0, 1.33294, 0, 0, 1, -0.632657, 1, 0, 0, -1.78973e-15, 0, 1, 0, 1.33294, 0, 0, 1, -0.730529, 1, 0, 0, 0.365265, 0, 1, 0, 1.33294, 0, 0, 1, -0.632657, 1, 0, 0, 0.632657, 0, 1, 0, 1.33294, 0, 0, 1, -0.365265, 1, 0, 0, 0.730529, 0, 1, 0, 1.33294, 0, 0, 1, -3.13215e-15, 1, 0, 0, 1.02971, 0, 1, 0, 1.1699, 0, 0, 1, 0.374784, 1, 0, 0, 0.839427, 0, 1, 0, 1.1699, 0, 0, 1, 0.704363, 1, 0, 0, 0.547897, 0, 1, 0, 1.1699, 0, 0, 1, 0.948986, 1, 0, 0, 0.190283, 0, 1, 0, 1.1699, 0, 0, 1, 1.07915, 1, 0, 0, -0.190283, 0, 1, 0, 1.1699, 0, 0, 1, 1.07915, 1, 0, 0, -0.547897, 0, 1, 0, 1.1699, 0, 0, 1, 0.948986, 1, 0, 0, -0.839427, 0, 1, 0, 1.1699, 0, 0, 1, 0.704363, 1, 0, 0, -1.02971, 0, 1, 0, 1.1699, 0, 0, 1, 0.374784, 1, 0, 0, -1.09579, 0, 1, 0, 1.1699, 0, 0, 1, 8.72546e-15, 1, 0, 0, -1.02971, 0, 1, 0, 1.1699, 0, 0, 1, -0.374784, 1, 0, 0, -0.839427, 0, 1, 0, 1.1699, 0, 0, 1, -0.704363, 1, 0, 0, -0.547897, 0, 1, 0, 1.1699, 0, 0, 1, -0.948986, 1, 0, 0, -0.190283, 0, 1, 0, 1.1699, 0, 0, 1, -1.07915, 1, 0, 0, 0.190283, 0, 1, 0, 1.1699, 0, 0, 1, -1.07915, 1, 0, 0, 0.547897, 0, 1, 0, 1.1699, 0, 0, 1, -0.948986, 1, 0, 0, 0.839427, 0, 1, 0, 1.1699, 0, 0, 1, -0.704363, 1, 0, 0, 1.02971, 0, 1, 0, 1.1699, 0, 0, 1, -0.374784, 1, 0, 0, 1.09579, 0, 1, 0, 1.1699, 0, 0, 1, -1.27527e-14, 1, 0, 0, 1.40688, 0, 1, 0, 1.00686, 0, 0, 1, 0.394189, 1, 0, 0, 1.24836, 0, 1, 0, 1.00686, 0, 0, 1, 0.759143, 1, 0, 0, 0.99725, 0, 1, 0, 1.00686, 0, 0, 1, 1.06779, 1, 0, 0, 0.672182, 0, 1, 0, 1.00686, 0, 0, 1, 1.29725, 1, 0, 0, 0.297261, 0, 1, 0, 1.00686, 0, 0, 1, 1.4305, 1, 0, 0, -0.0997062, 0, 1, 0, 1.00686, 0, 0, 1, 1.45765, 1, 0, 0, -0.489279, 0, 1, 0, 1.00686, 0, 0, 1, 1.3767, 1, 0, 0, -0.842564, 0, 1, 0, 1.00686, 0, 0, 1, 1.19364, 1, 0, 0, -1.13336, 0, 1, 0, 1.00686, 0, 0, 1, 0.922057, 1, 0, 0, -1.3401, 0, 1, 0, 1.00686, 0, 0, 1, 0.582087, 1, 0, 0, -1.44745, 0, 1, 0, 1.00686, 0, 0, 1, 0.198947, 1, 0, 0, -1.44745, 0, 1, 0, 1.00686, 0, 0, 1, -0.198947, 1, 0, 0, -1.3401, 0, 1, 0, 1.00686, 0, 0, 1, -0.582087, 1, 0, 0, -1.13336, 0, 1, 0, 1.00686, 0, 0, 1, -0.922057, 1, 0, 0, -0.842564, 0, 1, 0, 1.00686, 0, 0, 1, -1.19364, 1, 0, 0, -0.489279, 0, 1, 0, 1.00686, 0, 0, 1, -1.3767, 1, 0, 0, -0.0997062, 0, 1, 0, 1.00686, 0, 0, 1, -1.45765, 1, 0, 0, 0.297261, 0, 1, 0, 1.00686, 0, 0, 1, -1.4305, 1, 0, 0, 0.672182, 0, 1, 0, 1.00686, 0, 0, 1, -1.29725, 1, 0, 0, 0.99725, 0, 1, 0, 1.00686, 0, 0, 1, -1.06779, 1, 0, 0, 1.24836, 0, 1, 0, 1.00686, 0, 0, 1, -0.759143, 1, 0, 0, 1.40688, 0, 1, 0, 1.00686, 0, 0, 1, -0.394189, 1, 0, 0, 1.46106, 0, 1, 0, 1.00686, 0, 0, 1, 8.59217e-15, 1, 0, 0, 1.78363, 0, 1, 0, 0.843819, 0, 0, 1, 0.392606, 1, 0, 0, 1.65753, 0, 1, 0, 0.843819, 0, 0, 1, 0.766853, 1, 0, 0, 1.45392, 0, 1, 0, 0.843819, 0, 0, 1, 1.10524, 1, 0, 0, 1.18234, 0, 1, 0, 0.843819, 0, 0, 1, 1.39195, 1, 0, 0, 0.855465, 0, 1, 0, 0.843819, 0, 0, 1, 1.61358, 1, 0, 0, 0.488593, 0, 1, 0, 0.843819, 0, 0, 1, 1.75975, 1, 0, 0, 0.0988752, 0, 1, 0, 0.843819, 0, 0, 1, 1.82364, 1, 0, 0, -0.295466, 0, 1, 0, 0.843819, 0, 0, 1, 1.80226, 1, 0, 0, -0.675992, 0, 1, 0, 0.843819, 0, 0, 1, 1.69661, 1, 0, 0, -1.02491, 0, 1, 0, 0.843819, 0, 0, 1, 1.51163, 1, 0, 0, -1.3259, 0, 1, 0, 0.843819, 0, 0, 1, 1.25596, 1, 0, 0, -1.5649, 0, 1, 0, 0.843819, 0, 0, 1, 0.941568, 1, 0, 0, -1.73072, 0, 1
[node name="ItemPile" type="StaticBody3D"]
script = ExtResource("1_tosru")
item = ExtResource("2_gcf8n")
count = 3000
item_volume = 0.008
item_radius = 0.2
slope_angle = 24.054
[node name="Cone" type="MeshInstance3D" parent="."]
transform = Transform3D(3.71678, 0, 0, 0, 1.65901, 0, 0, 0, 3.71678, 0, 0.829507, 0)
visible = false
mesh = SubResource("CylinderMesh_gcf8n")
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.5, 0)
shape = SubResource("CylinderShape3D_suxjt")
[node name="Props" type="MultiMeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.25, 0)
visibility_range_end = 100.0
multimesh = SubResource("MultiMesh_gcf8n")
[node name="Producer" type="Node" parent="."]
script = ExtResource("4_gcf8n")
metadata/_custom_type_script = "uid://c4fquatkjmsgu"