TowerGame/objects/buildings/conveyor.tscn

91 lines
3.3 KiB
Plaintext

[gd_scene load_steps=10 format=3 uid="uid://dhfqv26h4i0i3"]
[ext_resource type="Script" uid="uid://cnoyykkcidp1d" path="res://scripts/buildings/conveyor.gd" id="1_m8ga5"]
[ext_resource type="ArrayMesh" uid="uid://bv225xw8xssl4" path="res://assets/models/Conveyor.obj" id="2_dyib0"]
[ext_resource type="Script" uid="uid://bshiyw2k3op02" path="res://scripts/building_components/consumer.gd" id="3_vjqud"]
[ext_resource type="Script" uid="uid://c4fquatkjmsgu" path="res://scripts/building_components/producer.gd" id="4_d3uke"]
[ext_resource type="ArrayMesh" uid="uid://c6yj8uwsgqxv0" path="res://assets/models/Ingot.obj" id="5_w2262"]
[sub_resource type="Curve3D" id="Curve3D_m8ga5"]
_data = {
"points": PackedVector3Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2),
"tilts": PackedFloat32Array(0, 0)
}
point_count = 2
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_m8ga5"]
albedo_color = Color(0.0703125, 0.0703125, 0.0703125, 1)
[sub_resource type="BoxMesh" id="BoxMesh_dyib0"]
material = SubResource("StandardMaterial3D_m8ga5")
size = Vector3(0.5, 0.3, 1)
[sub_resource type="MultiMesh" id="MultiMesh_6iypd"]
transform_format = 1
instance_count = 1
mesh = ExtResource("5_w2262")
buffer = PackedFloat32Array(1, 8.40779e-44, 8.54792e-44, 9.10844e-44, 8.54792e-44, 1, 9.10844e-44, 0.325, 8.82818e-44, 9.10844e-44, 1, 8.96831e-44)
[node name="Conveyor" type="Node3D"]
script = ExtResource("1_m8ga5")
item_offset = Vector3(0, 0.325, 0)
spacing = 0.5
[node name="Path3D" type="Path3D" parent="."]
curve = SubResource("Curve3D_m8ga5")
[node name="PathMesh3D" type="PathMesh3D" parent="Path3D" node_paths=PackedStringArray("path_3d")]
mesh_transform = 1
mesh = ExtResource("2_dyib0")
path_3d = NodePath("..")
surface_0/tile_rotation = Vector3(0, 0, 0)
surface_0/tile_rotation_order = 2
surface_0/distribution = 0
surface_0/alignment = 0
surface_0/warp_along_curve = true
surface_0/sample_cubic = false
surface_0/tilt = true
surface_0/offset = Vector2(0, 0)
surface_1/tile_rotation = Vector3(0, 0, 0)
surface_1/tile_rotation_order = 2
surface_1/distribution = 0
surface_1/alignment = 0
surface_1/warp_along_curve = true
surface_1/sample_cubic = false
surface_1/tilt = true
surface_1/offset = Vector2(0, 0)
visibility_range_end = 100.0
[node name="PathMesh3D2" type="PathMesh3D" parent="Path3D" node_paths=PackedStringArray("path_3d")]
mesh_transform = 1
mesh = SubResource("BoxMesh_dyib0")
path_3d = NodePath("..")
surface_0/tile_rotation = Vector3(0, 0, 0)
surface_0/tile_rotation_order = 2
surface_0/distribution = 0
surface_0/alignment = 0
surface_0/warp_along_curve = true
surface_0/sample_cubic = false
surface_0/tilt = true
surface_0/offset = Vector2(0, 0)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0)
visibility_range_begin = 100.0
[node name="Consumer" type="Node" parent="."]
script = ExtResource("3_vjqud")
storage_size = 1
metadata/_custom_type_script = "uid://bshiyw2k3op02"
[node name="Producer" type="Node" parent="."]
script = ExtResource("4_d3uke")
metadata/_custom_type_script = "uid://c4fquatkjmsgu"
[node name="MultiMeshInstance3D" type="MultiMeshInstance3D" parent="."]
physics_interpolation_mode = 2
visibility_range_end = 50.0
visibility_range_end_margin = 50.0
visibility_range_fade_mode = 1
multimesh = SubResource("MultiMesh_6iypd")
[connection signal="item_added" from="Consumer" to="." method="consumer_has_item"]