157 lines
55 KiB
Plaintext
157 lines
55 KiB
Plaintext
|
[gd_scene load_steps=8 format=3 uid="uid://chkkhdk6g1v7x"]
|
||
|
|
||
|
[ext_resource type="PackedScene" uid="uid://dp41b4l8rtmd" path="res://navdrone.tscn" id="1_esedd"]
|
||
|
[ext_resource type="Script" path="res://DroneMgr.gd" id="4_lmjyu"]
|
||
|
|
||
|
[sub_resource type="NavigationMesh" id="NavigationMesh_7v507"]
|
||
|
vertices = PackedVector3Array(-190, 0.3, -199.5, -199.5, 0.3, -199.5, -199.5, 0.3, -190, -180.5, 0.3, -199.5, -190, 0.3, -199.5, -199.5, 0.3, -190, -180.5, 0.3, -199.5, -199.5, 0.3, -190, -199.5, 0.3, -180.25, -171, 0.3, -199.5, -125, 0.3, -124.25, -132.5, 0.3, -199.5, -142, 0.3, -199.5, -199.5, 0.3, -151.5, -199.5, 0.3, -141.75, -171, 0.3, -199.5, -199.5, 0.3, -180.25, -199.5, 0.3, -170.75, -161.25, 0.3, -199.5, -199.5, 0.3, -141.75, -199.5, 0.3, -132, -125, 0.3, -124.25, -161.25, 0.3, -199.5, -199.5, 0.3, -170.75, -199.5, 0.3, -161, -151.75, 0.3, -199.5, -125, 0.3, -124.25, -122.75, 0.3, -124.5, -122.75, 0.3, -199.5, -132.5, 0.3, -199.5, -151.75, 0.3, -199.5, -199.5, 0.3, -161, -199.5, 0.3, -151.5, -142, 0.3, -199.5, -199.5, 0.3, -122.25, -125, 0.3, -122.25, -125, 0.3, -124.25, -199.5, 0.3, -132, -115.75, 0.3, -199.5, -122.75, 0.3, -199.5, -122.75, 0.3, -124.5, -115.75, 0.3, -124.5, -94.5, 0.3, -124.5, -87.5, 0.3, -124.5, -87.5, 0.3, -199.5, -94.5, 0.3, -199.5, -108.75, 0.3, -199.5, -115.75, 0.3, -199.5, -115.75, 0.3, -124.5, -108.75, 0.3, -124.5, -87.5, 0.3, -124.5, -80.25, 0.3, -124.5, -80.25, 0.3, -199.5, -87.5, 0.3, -199.5, -101.75, 0.3, -199.5, -108.75, 0.3, -199.5, -108.75, 0.3, -124.5, -101.75, 0.3, -124.5, -73.25, 0.3, -199.5, -80.25, 0.3, -199.5, -80.25, 0.3, -124.5, -73.25, 0.3, -124.5, -73.25, 0.3, -124.5, -66, 0.3, -124.5, -66, 0.3, -199.5, -73.25, 0.3, -199.5, -94.5, 0.3, -199.5, -101.75, 0.3, -199.5, -101.75, 0.3, -124.5, -94.5, 0.3, -124.5, 54.75, 0.3, -124.5, 56.75, 0.3, -124.5, 56.75, 0.3, -199.5, 49, 0.3, -199.5, -66, 0.3, -199.5, -66, 0.3, -124.5, -64, 0.3, -124.5, -58.5, 0.3, -199.5, -12.5, 0.3, -199.5, -20.25, 0.3, -199.5, -63.75, 0.3, -122.5, 54.5, 0.3, -122.5, 10.5, 0.3, -199.5, 2.75, 0.3, -199.5, -50.75, 0.3, -199.5, -58.5, 0.3, -199.5, -64, 0.3, -124.5, 54.75, 0.3, -124.5, 49, 0.3, -199.5, 41.25, 0.3, -199.5, -43.25, 0.3, -199.5, -50.75, 0.3, -199.5, -64, 0.3, -124.5, 54.75, 0.3, -124.5, 41.25, 0.3, -199.5, 33.5, 0.3, -199.5, -43.25, 0.3, -199.5, -64, 0.3, -124.5, -63.75, 0.3, -122.5, -35.5, 0.3, -199.5, 54.5, 0.3, -122.5, 54.75, 0.3, -124.5, 33.5, 0.3, -199.5, 26, 0.3, -199.5, -4.75, 0.3, -199.5, -12.5, 0.3, -199.5, -63.75, 0.3, -122.5, 54.5, 0.3, -122.5, 2.75, 0.3, -199.5, -4.75, 0.3, -199.5, -63.75, 0.3, -122.5, -28, 0.3, -199.5, -35.5, 0.3, -199.5, -63.75, 0.3, -122.5, 54.5, 0.3, -122.5, 26, 0.3, -199.5, 18.25, 0.3, -199.5, -20.25, 0.3, -199.5, -28, 0.3, -199.5, -63.75, 0.3, -122.5, 54.5, 0.3, -122.5, 18.25, 0.3, -199.5, 10.5, 0.3, -199.5, 63.75, 0.3, -199.5, 56.75, 0.3, -199.5, 56.75, 0.3, -124.5, 63.75, 0.3, -124.5, 85, 0.3, -124.5, 92, 0.3, -124.5, 92, 0.3, -199.5, 85, 0.3, -199.5, 70.75, 0.3, -199.5, 63.75, 0.3, -199.5, 63.75, 0.3, -124.5, 70.75, 0.3, -124.5, 92, 0.3, -124.5, 99.25, 0.3, -124.5, 99.25, 0.3, -199.5, 92, 0.3, -199.5, 77.75, 0.3, -199.5, 70.75, 0.3, -199.5, 70.75, 0.3, -124.5, 77.75, 0.3, -124.5, 106.25, 0.3, -199.5, 99.25, 0.3, -199.5, 99.25, 0.3, -124.5, 106.25, 0.3, -124.5, 106.25, 0.3, -124.5, 113.5, 0.3, -124.5, 113.5, 0.3, -199.5, 106.25, 0.3, -199.5, 85, 0.3, -199.5, 77.75, 0.3, -199.5, 77.75, 0.3, -124.5, 85, 0.3, -124.5, 199.5, 0.3, -190, 199.5, 0.3, -199.5, 188.75, 0.3, -199.5, 199.5, 0.3, -180.5, 199.5, 0.3, -190, 188.75, 0.3, -199.5, 199.5, 0.3, -180.5, 188.75, 0.3, -199.5, 178, 0.3, -199.5, 199.5, 0.3, -171, 145.75, 0.3, -199.5, 135, 0.3, -199.5, 115.75, 0.3, -122.75, 199.5, 0.3, -132.75, 199.5, 0.3, -142.25, 199.5, 0.3, -171, 178, 0.3, -199.5, 167.25, 0.3, -199.5, 199.5, 0.3, -161.25, 124.25, 0.3, -199.5, 115.5, 0.3, -124.5, 115.75, 0.3, -122.75, 135, 0.3, -199.5, 199.5, 0.3, -161.25, 167.25, 0.3, -199.5, 156.5, 0.3, -199.5, 199.5, 0.3, -151.75, 115.75, 0.3, -122.75, 199.5, 0.3, -123, 199.5, 0.3, -132.75, 199.5, 0.3, -142.25, 199.5, 0.3, -151.75, 156.5, 0.3, -199.5, 145.75, 0.3, -199.5, 113.5, 0.3, -199.5, 113.5, 0.3, -124.5, 115.5, 0.3, -124.5, 124.25, 0.3, -199.5, -116.75, 35.3, -123.5, -124, 35.3, -123.5, -124, 35.3, -116.25, -124, 35.3, -71.75, -124, 35.3, -64.25, -116.75, 35.3, -64.25, -64.75, 35.3, -116.25, -64.75, 35.3, -123.5, -72.25, 35.3, -123.5, -
|
||
|
polygons = [PackedInt32Array(2, 1, 0), PackedInt32Array(5, 4, 3), PackedInt32Array(7, 6, 8), PackedInt32Array(8, 6, 9), PackedInt32Array(11, 10, 12), PackedInt32Array(12, 10, 13), PackedInt32Array(13, 10, 14), PackedInt32Array(16, 15, 17), PackedInt32Array(17, 15, 18), PackedInt32Array(21, 20, 19), PackedInt32Array(23, 22, 24), PackedInt32Array(24, 22, 25), PackedInt32Array(27, 26, 28), PackedInt32Array(28, 26, 29), PackedInt32Array(31, 30, 32), PackedInt32Array(32, 30, 33), PackedInt32Array(35, 34, 36), PackedInt32Array(36, 34, 37), PackedInt32Array(41, 40, 38), PackedInt32Array(38, 40, 39), PackedInt32Array(45, 44, 42), PackedInt32Array(42, 44, 43), PackedInt32Array(49, 48, 46), PackedInt32Array(46, 48, 47), PackedInt32Array(53, 52, 50), PackedInt32Array(50, 52, 51), PackedInt32Array(57, 56, 54), PackedInt32Array(54, 56, 55), PackedInt32Array(61, 60, 58), PackedInt32Array(58, 60, 59), PackedInt32Array(65, 64, 62), PackedInt32Array(62, 64, 63), PackedInt32Array(69, 68, 66), PackedInt32Array(66, 68, 67), PackedInt32Array(71, 70, 72), PackedInt32Array(72, 70, 73), PackedInt32Array(75, 74, 76), PackedInt32Array(76, 74, 77), PackedInt32Array(80, 79, 78), PackedInt32Array(83, 82, 81), PackedInt32Array(86, 85, 84), PackedInt32Array(89, 88, 87), PackedInt32Array(92, 91, 90), PackedInt32Array(95, 94, 93), PackedInt32Array(97, 96, 98), PackedInt32Array(98, 96, 99), PackedInt32Array(101, 100, 102), PackedInt32Array(102, 100, 103), PackedInt32Array(106, 105, 104), PackedInt32Array(108, 107, 109), PackedInt32Array(109, 107, 110), PackedInt32Array(113, 112, 111), PackedInt32Array(116, 115, 114), PackedInt32Array(119, 118, 117), PackedInt32Array(122, 121, 120), PackedInt32Array(126, 125, 123), PackedInt32Array(123, 125, 124), PackedInt32Array(130, 129, 127), PackedInt32Array(127, 129, 128), PackedInt32Array(134, 133, 131), PackedInt32Array(131, 133, 132), PackedInt32Array(138, 137, 135), PackedInt32Array(135, 137, 136), PackedInt32Array(142, 141, 139), PackedInt32Array(139, 141, 140), PackedInt32Array(146, 145, 143), PackedInt32Array(143, 145, 144), PackedInt32Array(150, 149, 147), PackedInt32Array(147, 149, 148), PackedInt32Array(154, 153, 151), PackedInt32Array(151, 153, 152), PackedInt32Array(157, 156, 155), PackedInt32Array(160, 159, 158), PackedInt32Array(162, 161, 163), PackedInt32Array(163, 161, 164), PackedInt32Array(166, 165, 167), PackedInt32Array(167, 165, 169), PackedInt32Array(167, 169, 168), PackedInt32Array(170, 173, 171), PackedInt32Array(171, 173, 172), PackedInt32Array(175, 174, 176), PackedInt32Array(176, 174, 177), PackedInt32Array(178, 181, 179), PackedInt32Array(179, 181, 180), PackedInt32Array(184, 183, 182), PackedInt32Array(186, 185, 187), PackedInt32Array(187, 185, 188), PackedInt32Array(190, 189, 191), PackedInt32Array(191, 189, 192), PackedInt32Array(195, 194, 193), PackedInt32Array(198, 197, 196), PackedInt32Array(201, 200, 199), PackedInt32Array(204, 203, 202), PackedInt32Array(206, 205, 207), PackedInt32Array(207, 205, 208), PackedInt32Array(210, 209, 211), PackedInt32Array(211, 209, 212), PackedInt32Array(214, 213, 215), PackedInt32Array(215, 213, 216), PackedInt32Array(219, 218, 217), PackedInt32Array(221, 220, 222), PackedInt32Array(222, 220, 223), PackedInt32Array(223, 220, 224), PackedInt32Array(224, 220, 225), PackedInt32Array(227, 226, 228), PackedInt32Array(228, 226, 229), PackedInt32Array(231, 230, 232), PackedInt32Array(232, 230, 233), PackedInt32Array(235, 234, 236), PackedInt32Array(236, 234, 237), PackedInt32Array(239, 238, 240), PackedInt32Array(240, 238, 241), PackedInt32Array(243, 242, 244), PackedInt32Array(244, 242, 245), PackedInt32Array(247, 246, 248), PackedInt32Array(248, 246, 249), PackedInt32Array(251, 250, 252), PackedInt32Array(252, 250, 253), PackedInt32Array(256, 255, 254), PackedInt32Array(259, 258, 257), PackedInt32Array(262, 261, 260), PackedInt32Array(265, 264, 263), PackedInt32Array(268, 267, 266), PackedInt32Array(270, 269, 271), PackedInt32Array(271, 269, 272), PackedInt32Array(274, 273, 275), PackedInt32Array(275, 273, 276), PackedInt32Array(278, 277, 279), PackedInt
|
||
|
|
||
|
[sub_resource type="BoxMesh" id="BoxMesh_065fy"]
|
||
|
|
||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_p2hs8"]
|
||
|
|
||
|
[sub_resource type="CylinderMesh" id="CylinderMesh_dmnm3"]
|
||
|
|
||
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_312jr"]
|
||
|
|
||
|
[node name="DronePather" type="Node3D"]
|
||
|
|
||
|
[node name="level" type="Node" parent="."]
|
||
|
|
||
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="level"]
|
||
|
transform = Transform3D(0.113547, 0.983183, -0.143035, -0.769231, 0.178112, 0.613645, 0.628802, 0.0403499, 0.776518, 0, 121.976, 0)
|
||
|
|
||
|
[node name="NavigationRegion3D" type="NavigationRegion3D" parent="."]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00379896, 0.014185, -0.0111256)
|
||
|
navigation_mesh = SubResource("NavigationMesh_7v507")
|
||
|
|
||
|
[node name="box" type="MeshInstance3D" parent="NavigationRegion3D"]
|
||
|
transform = Transform3D(400, 0, 0, 0, 0.2, 0, 0, 0, 400, 0, -0.1, 0)
|
||
|
mesh = SubResource("BoxMesh_065fy")
|
||
|
skeleton = NodePath("../..")
|
||
|
|
||
|
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/box"]
|
||
|
|
||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/box/StaticBody3D"]
|
||
|
shape = SubResource("BoxShape3D_p2hs8")
|
||
|
|
||
|
[node name="bin" type="MeshInstance3D" parent="NavigationRegion3D"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.63987, 0.876295, 0)
|
||
|
mesh = SubResource("CylinderMesh_dmnm3")
|
||
|
skeleton = NodePath("../..")
|
||
|
|
||
|
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/bin"]
|
||
|
collision_layer = 2
|
||
|
|
||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/bin/StaticBody3D"]
|
||
|
shape = SubResource("CylinderShape3D_312jr")
|
||
|
|
||
|
[node name="bin2" type="MeshInstance3D" parent="NavigationRegion3D"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.66353, 0.876295, 7.17757)
|
||
|
mesh = SubResource("CylinderMesh_dmnm3")
|
||
|
skeleton = NodePath("../..")
|
||
|
|
||
|
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/bin2"]
|
||
|
collision_layer = 2
|
||
|
|
||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/bin2/StaticBody3D"]
|
||
|
shape = SubResource("CylinderShape3D_312jr")
|
||
|
|
||
|
[node name="bin3" type="MeshInstance3D" parent="NavigationRegion3D"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 18.3329, 0.876295, -0.488798)
|
||
|
mesh = SubResource("CylinderMesh_dmnm3")
|
||
|
skeleton = NodePath("../..")
|
||
|
|
||
|
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/bin3"]
|
||
|
collision_layer = 2
|
||
|
|
||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/bin3/StaticBody3D"]
|
||
|
shape = SubResource("CylinderShape3D_312jr")
|
||
|
|
||
|
[node name="bin4" type="MeshInstance3D" parent="NavigationRegion3D"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.2259, 0.876295, -8.74865)
|
||
|
mesh = SubResource("CylinderMesh_dmnm3")
|
||
|
skeleton = NodePath("../..")
|
||
|
|
||
|
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/bin4"]
|
||
|
collision_layer = 2
|
||
|
|
||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/bin4/StaticBody3D"]
|
||
|
shape = SubResource("CylinderShape3D_312jr")
|
||
|
|
||
|
[node name="bin5" type="MeshInstance3D" parent="NavigationRegion3D"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.2259, 0.876295, 1.30984)
|
||
|
mesh = SubResource("CylinderMesh_dmnm3")
|
||
|
skeleton = NodePath("../..")
|
||
|
|
||
|
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/bin5"]
|
||
|
collision_layer = 2
|
||
|
|
||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/bin5/StaticBody3D"]
|
||
|
shape = SubResource("CylinderShape3D_312jr")
|
||
|
|
||
|
[node name="bin6" type="MeshInstance3D" parent="NavigationRegion3D"]
|
||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.45569, 0.844151, 2.17289)
|
||
|
mesh = SubResource("CylinderMesh_dmnm3")
|
||
|
skeleton = NodePath("../..")
|
||
|
|
||
|
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/bin6"]
|
||
|
collision_layer = 2
|
||
|
|
||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/bin6/StaticBody3D"]
|
||
|
shape = SubResource("CylinderShape3D_312jr")
|
||
|
|
||
|
[node name="box2" type="MeshInstance3D" parent="NavigationRegion3D"]
|
||
|
transform = Transform3D(59.992, 0, 0, 0, 35, 0, 0, 0, 59.992, 85.1923, 17.5, -93.9694)
|
||
|
mesh = SubResource("BoxMesh_065fy")
|
||
|
skeleton = NodePath("../..")
|
||
|
|
||
|
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/box2"]
|
||
|
|
||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/box2/StaticBody3D"]
|
||
|
shape = SubResource("BoxShape3D_p2hs8")
|
||
|
|
||
|
[node name="box3" type="MeshInstance3D" parent="NavigationRegion3D"]
|
||
|
transform = Transform3D(59.992, 0.00526047, -0.0164745, -0.00901051, 35, 0.0211322, 0.0164779, -0.0123272, 59.992, -94.2777, 17.5, -93.9694)
|
||
|
mesh = SubResource("BoxMesh_065fy")
|
||
|
skeleton = NodePath("../..")
|
||
|
|
||
|
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/box3"]
|
||
|
|
||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/box3/StaticBody3D"]
|
||
|
shape = SubResource("BoxShape3D_p2hs8")
|
||
|
|
||
|
[node name="box4" type="MeshInstance3D" parent="NavigationRegion3D"]
|
||
|
transform = Transform3D(59.992, 0, 0, 0, 35, 0, 0, 0, 59.992, 85.5823, 17.5, 96.9549)
|
||
|
mesh = SubResource("BoxMesh_065fy")
|
||
|
skeleton = NodePath("../..")
|
||
|
|
||
|
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/box4"]
|
||
|
|
||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/box4/StaticBody3D"]
|
||
|
shape = SubResource("BoxShape3D_p2hs8")
|
||
|
|
||
|
[node name="box5" type="MeshInstance3D" parent="NavigationRegion3D"]
|
||
|
transform = Transform3D(59.992, 0, 0, 0, 35, 0, 0, 0, 59.992, -93.8878, 17.5, 96.9549)
|
||
|
mesh = SubResource("BoxMesh_065fy")
|
||
|
skeleton = NodePath("../..")
|
||
|
|
||
|
[node name="StaticBody3D" type="StaticBody3D" parent="NavigationRegion3D/box5"]
|
||
|
|
||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="NavigationRegion3D/box5/StaticBody3D"]
|
||
|
shape = SubResource("BoxShape3D_p2hs8")
|
||
|
|
||
|
[node name="Navdrone" parent="." node_paths=PackedStringArray("navres") instance=ExtResource("1_esedd")]
|
||
|
navres = NodePath("../NavigationRegion3D")
|
||
|
|
||
|
[node name="Camera3D" type="Camera3D" parent="."]
|
||
|
transform = Transform3D(-1, 5.32907e-14, -8.74227e-08, -4.96688e-08, 0.822928, 0.568146, 7.19426e-08, 0.568146, -0.822928, 0, 7.44387, -7.228)
|
||
|
fov = 90.0
|
||
|
|
||
|
[node name="DroneMgr" type="Node3D" parent="." node_paths=PackedStringArray("camera", "navreg")]
|
||
|
script = ExtResource("4_lmjyu")
|
||
|
camera = NodePath("../Camera3D")
|
||
|
drone = ExtResource("1_esedd")
|
||
|
navreg = NodePath("../NavigationRegion3D")
|