Add collisions to block rooms
This commit is contained in:
@@ -1,7 +1,133 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://dv6umo0bmlyyj"]
|
||||
[gd_scene load_steps=11 format=3 uid="uid://dv6umo0bmlyyj"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://bwx3fvmfagdtr" path="res://src/map/dungeon/models/Area 1/SmallBlockRoom/A1-SmallBlock.glb" id="1_mpkwb"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_yk0st"]
|
||||
size = Vector3(12.0847, 8, 12.0664)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_mpkwb"]
|
||||
size = Vector3(3.92139, 3.9624, 4.01892)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_r0cck"]
|
||||
size = Vector3(4.00732, 3.9624, 4.03766)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_7yp7j"]
|
||||
size = Vector3(3.9967, 3.9624, 4.01892)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_4eosg"]
|
||||
size = Vector3(4.02051, 3.9624, 4.02655)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_gtyxa"]
|
||||
size = Vector3(4.02051, 3.9624, 4.02655)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_716hk"]
|
||||
size = Vector3(4.02051, 3.9624, 4.02655)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_o5ud6"]
|
||||
size = Vector3(4.02051, 3.9624, 4.02655)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_gnksh"]
|
||||
size = Vector3(19.9524, 0.1, 19.9805)
|
||||
|
||||
[node name="01_SmallBlockA1" type="Node3D"]
|
||||
|
||||
[node name="A1-SmallBlock" parent="." instance=ExtResource("1_mpkwb")]
|
||||
|
||||
[node name="Spawn Points" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.3092, 0, -8.8875)
|
||||
|
||||
[node name="PlayerSpawn" type="Marker3D" parent="Spawn Points"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.95499, 0.615637, 7.621)
|
||||
|
||||
[node name="ItemSpawnPoints" type="Node3D" parent="Spawn Points"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.00123, 0)
|
||||
|
||||
[node name="ItemSpawnPoint" type="Marker3D" parent="Spawn Points/ItemSpawnPoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.89063, -1.37378, 3.63487)
|
||||
|
||||
[node name="ItemSpawnPoint2" type="Marker3D" parent="Spawn Points/ItemSpawnPoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.96292, -1.37378, 10.8984)
|
||||
|
||||
[node name="ItemSpawnPoint3" type="Marker3D" parent="Spawn Points/ItemSpawnPoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.0523, -1.37378, 11.6249)
|
||||
|
||||
[node name="EnemySpawnPoints" type="Node3D" parent="Spawn Points"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.00123, 0)
|
||||
|
||||
[node name="EnemySpawn1" type="Marker3D" parent="Spawn Points/EnemySpawnPoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.67066, -1.602, 3.35927)
|
||||
|
||||
[node name="EnemySpawn2" type="Marker3D" parent="Spawn Points/EnemySpawnPoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.6143, -1.602, 6.01731)
|
||||
|
||||
[node name="EnemySpawn3" type="Marker3D" parent="Spawn Points/EnemySpawnPoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.9752, -1.602, 11.0699)
|
||||
|
||||
[node name="Room" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.3092, 0, -8.8875)
|
||||
|
||||
[node name="Room" type="Area3D" parent="Room"]
|
||||
unique_name_in_owner = true
|
||||
collision_layer = 0
|
||||
collision_mask = 10
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Room/Room"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.3539, 4.09071, 8.84395)
|
||||
shape = SubResource("BoxShape3D_yk0st")
|
||||
|
||||
[node name="Minimap" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.3092, 0, -8.8875)
|
||||
|
||||
[node name="Minimap" type="MeshInstance3D" parent="Minimap"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.6337, 0.253369, 8.01052)
|
||||
visible = false
|
||||
layers = 2
|
||||
|
||||
[node name="Collision" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.804775, 2.10907, 0)
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="Collision"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Collision/StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.1391, -0.142086, 3.98045)
|
||||
shape = SubResource("BoxShape3D_mpkwb")
|
||||
|
||||
[node name="CollisionShape3D2" type="CollisionShape3D" parent="Collision/StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -7.18206, -0.142086, -4.0277)
|
||||
shape = SubResource("BoxShape3D_r0cck")
|
||||
|
||||
[node name="CollisionShape3D3" type="CollisionShape3D" parent="Collision/StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.80376, -0.142086, 3.98045)
|
||||
shape = SubResource("BoxShape3D_7yp7j")
|
||||
|
||||
[node name="CollisionShape3D4" type="CollisionShape3D" parent="Collision/StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 8.81566, -0.142086, -4.03325)
|
||||
shape = SubResource("BoxShape3D_4eosg")
|
||||
|
||||
[node name="CollisionShape3D5" type="CollisionShape3D" parent="Collision/StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.80767, -0.142086, -8.02014)
|
||||
shape = SubResource("BoxShape3D_gtyxa")
|
||||
|
||||
[node name="CollisionShape3D7" type="CollisionShape3D" parent="Collision/StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.17954, -0.142086, -8.02014)
|
||||
shape = SubResource("BoxShape3D_716hk")
|
||||
|
||||
[node name="CollisionShape3D8" type="CollisionShape3D" parent="Collision/StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.17954, -0.142086, 7.97142)
|
||||
shape = SubResource("BoxShape3D_o5ud6")
|
||||
|
||||
[node name="CollisionShape3D9" type="CollisionShape3D" parent="Collision/StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.81589, -0.142086, 7.97142)
|
||||
shape = SubResource("BoxShape3D_o5ud6")
|
||||
|
||||
[node name="CollisionShape3D10" type="CollisionShape3D" parent="Collision/StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.81748, -0.142086, 5.93779)
|
||||
shape = SubResource("BoxShape3D_o5ud6")
|
||||
|
||||
[node name="CollisionShape3D6" type="CollisionShape3D" parent="Collision/StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.833786, -2.16366, -0.00332832)
|
||||
shape = SubResource("BoxShape3D_gnksh")
|
||||
|
||||
@@ -1,7 +1,191 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://by2op0p65ht27"]
|
||||
[gd_scene load_steps=18 format=3 uid="uid://by2op0p65ht27"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cakhdxwa4pp0" path="res://src/map/dungeon/models/Area 1/LargeBlockRoom/A1-LargeBlock.glb" id="1_kpudl"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_qt2sk"]
|
||||
size = Vector3(36.0175, 8, 20.0029)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_kpudl"]
|
||||
size = Vector3(43.9964, 0.1, 19.9678)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_apti7"]
|
||||
size = Vector3(35.9965, 7.72498, 0.25)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_i03xf"]
|
||||
size = Vector3(3.89508, 8.65515, 8.01782)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_egocx"]
|
||||
size = Vector3(2.012, 8, 2.06)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_ty3r6"]
|
||||
size = Vector3(8.04346, 8, 3.99652)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_gj32o"]
|
||||
size = Vector3(2.04395, 8, 2.02573)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_nb7yf"]
|
||||
size = Vector3(2.04395, 8, 3.99529)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_cleyb"]
|
||||
size = Vector3(2.04395, 8, 3.99529)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_5k7cm"]
|
||||
size = Vector3(6.05566, 8, 1.98678)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_bp2a4"]
|
||||
size = Vector3(2.05237, 8, 1.98678)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_eif7p"]
|
||||
size = Vector3(3.97897, 8, 2.03245)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_1irha"]
|
||||
size = Vector3(3.97897, 8, 3.98498)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_ougmr"]
|
||||
size = Vector3(2.05781, 8, 3.98684)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_ma5yn"]
|
||||
size = Vector3(2.07754, 8, 2.01283)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_3tj5h"]
|
||||
size = Vector3(1.99298, 8, 2.01283)
|
||||
|
||||
[node name="02_BigBlockRoom" type="Node3D"]
|
||||
|
||||
[node name="A1-LargeBlock" parent="." instance=ExtResource("1_kpudl")]
|
||||
|
||||
[node name="Spawn Points" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.97031, 0)
|
||||
|
||||
[node name="PlayerSpawn" type="Marker3D" parent="Spawn Points"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 5.022, -1.8, 7.621)
|
||||
|
||||
[node name="ItemSpawnPoints" type="Node3D" parent="Spawn Points"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.00123, 0)
|
||||
|
||||
[node name="ItemSpawnPoint" type="Marker3D" parent="Spawn Points/ItemSpawnPoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.89063, -3.71027, -4.99248)
|
||||
|
||||
[node name="ItemSpawnPoint2" type="Marker3D" parent="Spawn Points/ItemSpawnPoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.96292, -3.71027, 2.27105)
|
||||
|
||||
[node name="ItemSpawnPoint3" type="Marker3D" parent="Spawn Points/ItemSpawnPoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 15.0523, -3.71027, 2.99755)
|
||||
|
||||
[node name="EnemySpawnPoints" type="Node3D" parent="Spawn Points"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.00123, 0)
|
||||
|
||||
[node name="EnemySpawn1" type="Marker3D" parent="Spawn Points/EnemySpawnPoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.67066, -3.71027, 3.35927)
|
||||
|
||||
[node name="EnemySpawn2" type="Marker3D" parent="Spawn Points/EnemySpawnPoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.6143, -3.71027, 6.01731)
|
||||
|
||||
[node name="EnemySpawn3" type="Marker3D" parent="Spawn Points/EnemySpawnPoints"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.9752, -3.71027, 11.0699)
|
||||
|
||||
[node name="Room" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.749275, 2.10907, 0)
|
||||
|
||||
[node name="Room" type="Area3D" parent="Room"]
|
||||
unique_name_in_owner = true
|
||||
collision_layer = 0
|
||||
collision_mask = 10
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="Room/Room"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.826404, 1.9843, -0.0330553)
|
||||
shape = SubResource("BoxShape3D_qt2sk")
|
||||
|
||||
[node name="Minimap" type="Node3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.61193, 0.859072, 0)
|
||||
|
||||
[node name="Minimap" type="MeshInstance3D" parent="Minimap"]
|
||||
unique_name_in_owner = true
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 10.6337, -0.983959, 8.01052)
|
||||
visible = false
|
||||
layers = 2
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="."]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0588455, -0.0380182, -0.034668)
|
||||
shape = SubResource("BoxShape3D_kpudl")
|
||||
|
||||
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0638885, 3.88031, 10.104)
|
||||
shape = SubResource("BoxShape3D_apti7")
|
||||
|
||||
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0638885, 3.88031, -10.1147)
|
||||
shape = SubResource("BoxShape3D_apti7")
|
||||
|
||||
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.8831, 3.82758, -6.01316)
|
||||
shape = SubResource("BoxShape3D_i03xf")
|
||||
|
||||
[node name="CollisionShape3D5" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -19.8831, 3.82758, 5.97608)
|
||||
shape = SubResource("BoxShape3D_i03xf")
|
||||
|
||||
[node name="CollisionShape3D6" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 20.0013, 3.82758, -6.01316)
|
||||
shape = SubResource("BoxShape3D_i03xf")
|
||||
|
||||
[node name="CollisionShape3D7" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 20.0013, 3.82758, 5.97608)
|
||||
shape = SubResource("BoxShape3D_i03xf")
|
||||
|
||||
[node name="CollisionShape3D8" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.943198, 3.97562, -5.00098)
|
||||
shape = SubResource("BoxShape3D_egocx")
|
||||
|
||||
[node name="CollisionShape3D9" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.92843, 3.97562, -8.02667)
|
||||
shape = SubResource("BoxShape3D_ty3r6")
|
||||
|
||||
[node name="CollisionShape3D10" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.94297, 3.97562, -9.01207)
|
||||
shape = SubResource("BoxShape3D_gj32o")
|
||||
|
||||
[node name="CollisionShape3D11" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -16.9446, 3.97562, -9.01207)
|
||||
shape = SubResource("BoxShape3D_gj32o")
|
||||
|
||||
[node name="CollisionShape3D12" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -16.9446, 3.97562, 7.95674)
|
||||
shape = SubResource("BoxShape3D_nb7yf")
|
||||
|
||||
[node name="CollisionShape3D13" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -12.9547, 3.97562, 7.95674)
|
||||
shape = SubResource("BoxShape3D_cleyb")
|
||||
|
||||
[node name="CollisionShape3D14" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -10.9488, 3.97562, 8.96099)
|
||||
shape = SubResource("BoxShape3D_5k7cm")
|
||||
|
||||
[node name="CollisionShape3D15" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.920137, 3.97562, 8.96099)
|
||||
shape = SubResource("BoxShape3D_bp2a4")
|
||||
|
||||
[node name="CollisionShape3D16" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 12.0521, 3.97562, 8.93816)
|
||||
shape = SubResource("BoxShape3D_eif7p")
|
||||
|
||||
[node name="CollisionShape3D17" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 16.041, 3.97562, 7.96189)
|
||||
shape = SubResource("BoxShape3D_1irha")
|
||||
|
||||
[node name="CollisionShape3D18" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 11.0627, 3.97562, -8.03362)
|
||||
shape = SubResource("BoxShape3D_ougmr")
|
||||
|
||||
[node name="CollisionShape3D19" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 9.02784, 3.97562, -9.02063)
|
||||
shape = SubResource("BoxShape3D_ma5yn")
|
||||
|
||||
[node name="CollisionShape3D20" type="CollisionShape3D" parent="StaticBody3D"]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 13.0958, 3.97562, -9.02063)
|
||||
shape = SubResource("BoxShape3D_3tj5h")
|
||||
|
||||
Reference in New Issue
Block a user