-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_multi_mesh.tscn
93 lines (70 loc) · 3.13 KB
/
test_multi_mesh.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
[gd_scene load_steps=7 format=3 uid="uid://mekfn4g53vr4"]
[ext_resource type="Script" path="res://MoveDrones.cs" id="1_j5y5f"]
[ext_resource type="Script" path="res://CameraYaw.cs" id="2_c2aw6"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ww7mu"]
albedo_color = Color(0, 0, 1, 1)
[sub_resource type="PlaneMesh" id="PlaneMesh_pij3g"]
material = SubResource("StandardMaterial3D_ww7mu")
[sub_resource type="BoxMesh" id="BoxMesh_os0h3"]
[sub_resource type="MultiMesh" id="MultiMesh_wcvju"]
transform_format = 1
mesh = SubResource("BoxMesh_os0h3")
[node name="Test" type="Node3D"]
[node name="Plane" type="MeshInstance3D" parent="."]
transform = Transform3D(25, 0, 0, 0, 1, 0, 0, 0, 25, 0, -2, 0)
mesh = SubResource("PlaneMesh_pij3g")
[node name="CameraYaw" type="Node3D" parent="."]
script = ExtResource("2_c2aw6")
[node name="Camera3D" type="Camera3D" parent="CameraYaw"]
transform = Transform3D(1, 0, 0, 0, 0.864968, 0.501827, 0, -0.501827, 0.864968, 0, 19.0927, 35.2119)
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
transform = Transform3D(0.990507, 0, 0.137462, -0.0589254, 0.903463, 0.424598, -0.124192, -0.428667, 0.894886, 0, 0, 0)
[node name="MultiMeshInstance3D-Cube" type="MultiMeshInstance3D" parent="."]
multimesh = SubResource("MultiMesh_wcvju")
script = ExtResource("1_j5y5f")
[node name="Panel" type="Panel" parent="."]
self_modulate = Color(1, 1, 1, 0)
offset_right = 129.0
offset_bottom = 251.0
[node name="VBoxContainer" type="VBoxContainer" parent="Panel"]
layout_mode = 0
offset_left = 18.0
offset_top = 26.0
offset_right = 108.0
offset_bottom = 249.0
[node name="Plane" type="Button" parent="Panel/VBoxContainer"]
layout_mode = 2
text = "Plane"
[node name="Cube" type="Button" parent="Panel/VBoxContainer"]
layout_mode = 2
text = "Cube"
[node name="Ring" type="Button" parent="Panel/VBoxContainer"]
layout_mode = 2
text = "Ring"
[node name="Rings" type="Button" parent="Panel/VBoxContainer"]
layout_mode = 2
text = "Rings"
[node name="Inc" type="Button" parent="Panel/VBoxContainer"]
layout_mode = 2
text = "* 2"
[node name="Dec" type="Button" parent="Panel/VBoxContainer"]
layout_mode = 2
text = "/ 2"
[node name="Info" type="VBoxContainer" parent="Panel"]
layout_mode = 0
offset_left = 134.0
offset_top = 27.0
offset_right = 293.0
offset_bottom = 100.0
[node name="Entities" type="Label" parent="Panel/Info"]
layout_mode = 2
text = "Entities"
[node name="FPS" type="Label" parent="Panel/Info"]
layout_mode = 2
text = "FPS"
[connection signal="pressed" from="Panel/VBoxContainer/Plane" to="MultiMeshInstance3D-Cube" method="SetTargetPlane"]
[connection signal="pressed" from="Panel/VBoxContainer/Cube" to="MultiMeshInstance3D-Cube" method="SetTargetCube"]
[connection signal="pressed" from="Panel/VBoxContainer/Ring" to="MultiMeshInstance3D-Cube" method="SetTargetRing"]
[connection signal="pressed" from="Panel/VBoxContainer/Rings" to="MultiMeshInstance3D-Cube" method="SetTargetRings"]
[connection signal="pressed" from="Panel/VBoxContainer/Inc" to="MultiMeshInstance3D-Cube" method="IncreaseEntities"]
[connection signal="pressed" from="Panel/VBoxContainer/Dec" to="MultiMeshInstance3D-Cube" method="DecreaseEntities"]