Fix corridor collision

This commit is contained in:
2024-12-21 17:34:03 -08:00
parent 5d2b9ca247
commit 334a4a0b34
2 changed files with 314 additions and 308 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=32 format=4 uid="uid://bn4gslp2gk8ds"]
[gd_scene load_steps=36 format=4 uid="uid://bn4gslp2gk8ds"]
[ext_resource type="Script" path="res://src/map/dungeon/corridor/corridor.gd" id="1_lepkf"]
[ext_resource type="Texture2D" uid="uid://dte2ghntx5cjs" path="res://src/map/dungeon/models/corridor/CORRIDOR_AREA_1_VER_WALL TILE 1.jpg" id="2_2qrwe"]
@@ -101,227 +101,6 @@ _surfaces = [{
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_d0bvo")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vut7h"]
resource_name = "BOTTOM TRIM.007"
cull_mode = 2
albedo_texture = ExtResource("5_4xu2u")
[sub_resource type="ArrayMesh" id="ArrayMesh_6qqd2"]
_surfaces = [{
"aabb": AABB(1.01566, -23.5008, -0.95724, 1e-05, 24.4466, 2.00004),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAAAAAAAP////8AAAAAAAD//wAAAAD//wAAAAA=")
}, {
"aabb": AABB(1.01566, -36.1633, -0.95724, 1e-05, 12.6625, 2.00004),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAAAAAAAP////8AAAAAAAD//wAAAAD//wAAAAA=")
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_xspq4"]
resource_name = "CORRIDOR_AREA_1_VER_3_Cube_001"
_surfaces = [{
"aabb": AABB(1.01566, -23.5008, -0.95724, 1e-05, 24.4466, 2.00004),
"attribute_data": PackedByteArray("AAD/////AAAAAAAA/////w=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_c1jf8"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAAqioAAP////+qKgAAAAD//6oqAAD//wAAqipU1VTVVNVU1VTVVNVU1VTV")
}, {
"aabb": AABB(1.01566, -36.1633, -0.95724, 1e-05, 12.6625, 2.00004),
"attribute_data": PackedByteArray("//////9//3//f///////fw=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_vut7h"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(2, 2, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAAAAAAAP////8AAAAAAAD//wAAAAD//wAAAAD/P/9//z//f/8//3//P/9/")
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_6qqd2")
[sub_resource type="ArrayMesh" id="ArrayMesh_r4r1i"]
_surfaces = [{
"aabb": AABB(-0.984553, -23.5008, -0.95724, 2.00022, 24.4466, 1e-05),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAAAAD/////AAAAAP//AAAAAAAAAAD//wAAAAA=")
}, {
"aabb": AABB(-0.984553, -36.1633, -0.95724, 2.00022, 12.6625, 1e-05),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAAAAD/////AAAAAP//AAAAAAAAAAD//wAAAAA=")
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_hevci"]
resource_name = "CORRIDOR_AREA_1_VER_3_Cube_002"
_surfaces = [{
"aabb": AABB(-0.984553, -23.5008, -0.95724, 2.00022, 24.4466, 1e-05),
"attribute_data": PackedByteArray("AAAAAP////8AAP////8AAA=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_c1jf8"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAA/7//////AAD/v///AAAAAP+/AAD//wAA/7//////////////////////")
}, {
"aabb": AABB(-0.984553, -36.1633, -0.95724, 2.00022, 12.6625, 1e-05),
"attribute_data": PackedByteArray("/3///////3///////3//fw=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_vut7h"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(2, 2, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAAAID/////AAAAgP//AAAAAACAAAD//wAAAID/f////3////9/////f///")
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_r4r1i")
[sub_resource type="ArrayMesh" id="ArrayMesh_5ebjj"]
_surfaces = [{
"aabb": AABB(-0.984553, -23.5008, 1.0428, 2.00022, 24.4466, 1e-05),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("//8AAAAAAAAAAP//AAAAAAAAAAAAAAAA/////wAAAAA=")
}, {
"aabb": AABB(-0.984553, -36.1633, 1.0428, 2.00022, 12.6625, 1e-05),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("//8AAAAAAAAAAP//AAAAAAAAAAAAAAAA/////wAAAAA=")
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_q821b"]
resource_name = "CORRIDOR_AREA_1_VER_3_Cube_003"
_surfaces = [{
"aabb": AABB(-0.984553, -23.5008, 1.0428, 2.00022, 24.4466, 1e-05),
"attribute_data": PackedByteArray("AAD/////AAAAAAAA/v///w=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_c1jf8"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("//8AAAAAAAAAAP//AAAAAAAAAAAAAAAA/////wAAAAD/v/+//7//v/+//7//v/+/")
}, {
"aabb": AABB(-0.984553, -36.1633, 1.0428, 2.00022, 12.6625, 1e-05),
"attribute_data": PackedByteArray("//////9//3//f///////fw=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_vut7h"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(2, 2, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("//8AAAAAAAAAAP//AAAAAAAAAAAAAAAA/////wAAAAD///9/////f////3////9/")
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_5ebjj")
[sub_resource type="ArrayMesh" id="ArrayMesh_184ph"]
_surfaces = [{
"aabb": AABB(-0.984553, -23.5008, -0.95724, 1e-05, 24.4466, 2.00004),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAP//AAAAAP//AAAAAAAAAAAAAAAAAAD/////AAA=")
}, {
"aabb": AABB(-0.984553, -36.1633, -0.95724, 1e-05, 12.6625, 2.00004),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAP//AAAAAP//AAAAAAAAAAAAAAAAAAD/////AAA=")
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_omyab"]
resource_name = "CORRIDOR_AREA_1_VER_3_Cube_004"
_surfaces = [{
"aabb": AABB(-0.984553, -23.5008, -0.95724, 1e-05, 24.4466, 2.00004),
"attribute_data": PackedByteArray("AAD/////AAAAAAAA/////w=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_c1jf8"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAP//qioAAP//AACqKgAAAAAAAKoqAAD/////qiqqKqoqqiqqKqoqqiqqKqoq")
}, {
"aabb": AABB(-0.984553, -36.1633, -0.95724, 1e-05, 12.6625, 2.00004),
"attribute_data": PackedByteArray("/3///////3///////3//fw=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_vut7h"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(2, 2, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAP///78AAP//AAD/vwAAAAAAAP+/AAD//////7//fwAA/38AAP9/AAD/fwAA")
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_184ph")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_c78gi"]
resource_name = "Material.014"
cull_mode = 2
@@ -644,39 +423,247 @@ _surfaces = [{
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_ikfdv")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2qrwe"]
transparency = 1
albedo_color = Color(1, 1, 1, 0)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_vut7h"]
resource_name = "BOTTOM TRIM.007"
cull_mode = 2
albedo_texture = ExtResource("5_4xu2u")
[sub_resource type="ArrayMesh" id="ArrayMesh_5ebjj"]
_surfaces = [{
"aabb": AABB(-0.984553, -23.5008, 1.0428, 2.00022, 24.4466, 1e-05),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("//8AAAAAAAAAAP//AAAAAAAAAAAAAAAA/////wAAAAA=")
}, {
"aabb": AABB(-0.984553, -36.1633, 1.0428, 2.00022, 12.6625, 1e-05),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("//8AAAAAAAAAAP//AAAAAAAAAAAAAAAA/////wAAAAA=")
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_q821b"]
resource_name = "CORRIDOR_AREA_1_VER_3_Cube_003"
_surfaces = [{
"aabb": AABB(-0.984553, -23.5008, 1.0428, 2.00022, 24.4466, 1e-05),
"attribute_data": PackedByteArray("AAD/////AAAAAAAA/v///w=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_c1jf8"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("//8AAAAAAAAAAP//AAAAAAAAAAAAAAAA/////wAAAAD/v/+//7//v/+//7//v/+/")
}, {
"aabb": AABB(-0.984553, -36.1633, 1.0428, 2.00022, 12.6625, 1e-05),
"attribute_data": PackedByteArray("//////9//3//f///////fw=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_vut7h"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(2, 2, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("//8AAAAAAAAAAP//AAAAAAAAAAAAAAAA/////wAAAAD///9/////f////3////9/")
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_5ebjj")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_lepkf"]
transparency = 1
albedo_color = Color(1, 1, 1, 0)
[sub_resource type="ArrayMesh" id="ArrayMesh_184ph"]
_surfaces = [{
"aabb": AABB(-0.984553, -23.5008, -0.95724, 1e-05, 24.4466, 2.00004),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAP//AAAAAP//AAAAAAAAAAAAAAAAAAD/////AAA=")
}, {
"aabb": AABB(-0.984553, -36.1633, -0.95724, 1e-05, 12.6625, 2.00004),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAP//AAAAAP//AAAAAAAAAAAAAAAAAAD/////AAA=")
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_omyab"]
resource_name = "CORRIDOR_AREA_1_VER_3_Cube_004"
_surfaces = [{
"aabb": AABB(-0.984553, -23.5008, -0.95724, 1e-05, 24.4466, 2.00004),
"attribute_data": PackedByteArray("AAD/////AAAAAAAA/////w=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_c1jf8"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAP//qioAAP//AACqKgAAAAAAAKoqAAD/////qiqqKqoqqiqqKqoqqiqqKqoq")
}, {
"aabb": AABB(-0.984553, -36.1633, -0.95724, 1e-05, 12.6625, 2.00004),
"attribute_data": PackedByteArray("/3///////3///////3//fw=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_vut7h"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(2, 2, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAP///78AAP//AAD/vwAAAAAAAP+/AAD//////7//fwAA/38AAP9/AAD/fwAA")
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_184ph")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_0m8h3"]
transparency = 1
albedo_color = Color(1, 1, 1, 0)
[sub_resource type="ArrayMesh" id="ArrayMesh_6qqd2"]
_surfaces = [{
"aabb": AABB(1.01566, -23.5008, -0.95724, 1e-05, 24.4466, 2.00004),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAAAAAAAP////8AAAAAAAD//wAAAAD//wAAAAA=")
}, {
"aabb": AABB(1.01566, -36.1633, -0.95724, 1e-05, 12.6625, 2.00004),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAAAAAAAP////8AAAAAAAD//wAAAAD//wAAAAA=")
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_xspq4"]
resource_name = "CORRIDOR_AREA_1_VER_3_Cube_001"
_surfaces = [{
"aabb": AABB(1.01566, -23.5008, -0.95724, 1e-05, 24.4466, 2.00004),
"attribute_data": PackedByteArray("AAD/////AAAAAAAA/////w=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_c1jf8"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAAqioAAP////+qKgAAAAD//6oqAAD//wAAqipU1VTVVNVU1VTVVNVU1VTV")
}, {
"aabb": AABB(1.01566, -36.1633, -0.95724, 1e-05, 12.6625, 2.00004),
"attribute_data": PackedByteArray("//////9//3//f///////fw=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_vut7h"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(2, 2, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAAAAAAAP////8AAAAAAAD//wAAAAD//wAAAAD/P/9//z//f/8//3//P/9/")
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_6qqd2")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4xu2u"]
transparency = 1
albedo_color = Color(1, 1, 1, 0)
[sub_resource type="ArrayMesh" id="ArrayMesh_r4r1i"]
_surfaces = [{
"aabb": AABB(-0.984553, -23.5008, -0.95724, 2.00022, 24.4466, 1e-05),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAAAAD/////AAAAAP//AAAAAAAAAAD//wAAAAA=")
}, {
"aabb": AABB(-0.984553, -36.1633, -0.95724, 2.00022, 12.6625, 1e-05),
"format": 34896613377,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAAAAD/////AAAAAP//AAAAAAAAAAD//wAAAAA=")
}]
blend_shape_mode = 0
[sub_resource type="ArrayMesh" id="ArrayMesh_hevci"]
resource_name = "CORRIDOR_AREA_1_VER_3_Cube_002"
_surfaces = [{
"aabb": AABB(-0.984553, -23.5008, -0.95724, 2.00022, 24.4466, 1e-05),
"attribute_data": PackedByteArray("AAAAAP////8AAP////8AAA=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_c1jf8"),
"name": "WALL.007",
"primitive": 3,
"uv_scale": Vector4(0, 0, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAA/7//////AAD/v///AAAAAP+/AAD//wAA/7//////////////////////")
}, {
"aabb": AABB(-0.984553, -36.1633, -0.95724, 2.00022, 12.6625, 1e-05),
"attribute_data": PackedByteArray("/3///////3///////3//fw=="),
"format": 34896613399,
"index_count": 6,
"index_data": PackedByteArray("AAABAAIAAAADAAEA"),
"material": SubResource("StandardMaterial3D_vut7h"),
"name": "BOTTOM TRIM.007",
"primitive": 3,
"uv_scale": Vector4(2, 2, 0, 0),
"vertex_count": 4,
"vertex_data": PackedByteArray("AAAAAAAAAID/////AAAAgP//AAAAAACAAAD//wAAAID/f////3////9/////f///")
}]
blend_shape_mode = 0
shadow_mesh = SubResource("ArrayMesh_r4r1i")
[node name="Corridor" type="Node3D"]
script = ExtResource("1_lepkf")
voxel_scale = Vector3(4, 4, 4)
[node name="CSGBox3D" type="CSGBox3D" parent="."]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -0.0339373, -0.113283, -0.0946154)
visible = false
size = Vector3(4, 4, 4)
[node name="CSGBox3D2" type="CSGBox3D" parent="CSGBox3D"]
operation = 2
size = Vector3(3.5, 3.5, 3.5)
[node name="DOOR?_F_CUT" type="CSGBox3D" parent="CSGBox3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.87073e-07, 0.018258, -1.96627)
operation = 2
size = Vector3(4, 4, 0.2)
[node name="DOOR?_R_CUT" type="CSGBox3D" parent="CSGBox3D"]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, 1.84021, 0.0038693, -2.76238e-07)
operation = 2
size = Vector3(4, 4, 0.2)
[node name="DOOR?_L_CUT" type="CSGBox3D" parent="CSGBox3D"]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -2.01865, 0.0417442, 2.60638e-07)
operation = 2
size = Vector3(4, 4, 0.2)
[node name="DOOR?_B_CUT" type="CSGBox3D" parent="CSGBox3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.55025e-07, -0.0141317, 2.08285)
operation = 2
size = Vector3(3.8, 4, 0.2)
[node name="CORRIDOR" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0339367, -0.113283, -0.0946154)
@@ -685,46 +672,90 @@ transform = Transform3D(2, 0, 0, 0, 0.10779, 0, 0, 0, 2, 0, 2, 0)
mesh = SubResource("ArrayMesh_ia55j")
skeleton = NodePath("")
[node name="CA_WALL_Left" type="MeshInstance3D" parent="CORRIDOR"]
transform = Transform3D(2, 0, 0, 0, 0.10779, 0, 0, 0, 2, 0, 2, 0)
mesh = SubResource("ArrayMesh_xspq4")
skeleton = NodePath("")
[node name="CA_WALL_Back" type="MeshInstance3D" parent="CORRIDOR"]
transform = Transform3D(2, 0, 0, 0, 0.10779, 0, 0, 0, 2, 0, 2, 0)
mesh = SubResource("ArrayMesh_hevci")
skeleton = NodePath("")
[node name="CA_WALL_Front" type="MeshInstance3D" parent="CORRIDOR"]
transform = Transform3D(2, 0, 0, 0, 0.10779, 0, 0, 0, 2, 0, 2, 0)
mesh = SubResource("ArrayMesh_q821b")
skeleton = NodePath("")
[node name="CA_WALL_Right" type="MeshInstance3D" parent="CORRIDOR"]
transform = Transform3D(2, 0, 0, 0, 0.10779, 0, 0, 0, 2, 0, 2, 0)
mesh = SubResource("ArrayMesh_omyab")
skeleton = NodePath("")
[node name="CA_COLUMN_BR" type="MeshInstance3D" parent="CORRIDOR"]
transform = Transform3D(2, 0, 0, 0, 0.10779, 0, 0, 0, 2, 0, 2, 0)
visible = false
mesh = SubResource("ArrayMesh_hispj")
skeleton = NodePath("")
[node name="CSGBox3D" type="CSGBox3D" parent="CORRIDOR/CA_COLUMN_BR"]
transform = Transform3D(0.999951, 0, 0, 0, 1, 0, 0, 0, 0.999951, -0.855558, -17.7257, -0.824771)
visible = false
use_collision = true
size = Vector3(0.1, 36.312, 0.1)
[node name="CA_COLUMN_BL" type="MeshInstance3D" parent="CORRIDOR"]
transform = Transform3D(2, 0, 0, 0, 0.10779, 0, 0, 0, 2, 0, 2, 0)
visible = false
mesh = SubResource("ArrayMesh_34y20")
skeleton = NodePath("")
[node name="CSGBox3D2" type="CSGBox3D" parent="CORRIDOR/CA_COLUMN_BL"]
transform = Transform3D(0.99995, 0, 0, 0, 1, 0, 0, 0, 0.99995, 0.883936, -17.7257, -0.824771)
visible = false
use_collision = true
size = Vector3(0.1, 36.312, 0.1)
[node name="CA_COLUMN_FR" type="MeshInstance3D" parent="CORRIDOR"]
transform = Transform3D(2, 0, 0, 0, 0.10779, 0, 0, 0, 2, 0, 2, 0)
visible = false
mesh = SubResource("ArrayMesh_up0oe")
skeleton = NodePath("")
[node name="CSGBox3D4" type="CSGBox3D" parent="CORRIDOR/CA_COLUMN_FR"]
transform = Transform3D(0.99995, 0, 0, 0, 1, 0, 0, 0, 0.99995, -0.855161, -17.7257, 0.920119)
visible = false
use_collision = true
size = Vector3(0.1, 36.312, 0.1)
[node name="CA_COLUMN_FL" type="MeshInstance3D" parent="CORRIDOR"]
transform = Transform3D(2, 0, 0, 0, 0.10779, 0, 0, 0, 2, 0, 2, 0)
visible = false
mesh = SubResource("ArrayMesh_n625q")
skeleton = NodePath("")
[node name="CSGBox3D3" type="CSGBox3D" parent="CORRIDOR/CA_COLUMN_FL"]
transform = Transform3D(0.99995, 0, 0, 0, 1, 0, 0, 0, 0.99995, 0.892156, -17.7257, 0.913589)
visible = false
use_collision = true
size = Vector3(0.1, 36.312, 0.1)
[node name="DOOR?_F_CUT" type="CSGBox3D" parent="."]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -0.0339368, -0.095025, 1.87165)
use_collision = true
size = Vector3(3.8, 3.8, 0.25)
material = SubResource("StandardMaterial3D_2qrwe")
[node name="CA_WALL_Front" type="MeshInstance3D" parent="DOOR?_F_CUT"]
transform = Transform3D(-2, 0, 1.74846e-07, 0, 0.10779, 0, -1.74846e-07, 0, -2, -3.12924e-07, 1.98174, 1.96627)
mesh = SubResource("ArrayMesh_q821b")
skeleton = NodePath("")
[node name="DOOR?_R_CUT" type="CSGBox3D" parent="."]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, -1.87415, -0.109414, -0.094615)
use_collision = true
size = Vector3(3.8, 3.8, 0.25)
material = SubResource("StandardMaterial3D_lepkf")
[node name="CA_WALL_Right" type="MeshInstance3D" parent="DOOR?_R_CUT"]
transform = Transform3D(-8.74228e-08, 0, -2, 0, 0.10779, 0, 2, 0, -8.74228e-08, 3.57628e-07, 1.99613, 1.84021)
mesh = SubResource("ArrayMesh_omyab")
skeleton = NodePath("")
[node name="DOOR?_L_CUT" type="CSGBox3D" parent="."]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 1.98471, -0.0715388, -0.0946158)
use_collision = true
size = Vector3(3.8, 3.8, 0.25)
material = SubResource("StandardMaterial3D_0m8h3")
[node name="CA_WALL_Left" type="MeshInstance3D" parent="DOOR?_L_CUT"]
transform = Transform3D(-8.74228e-08, 0, -2, 0, 0.10779, 0, 2, 0, -8.74228e-08, -3.50177e-07, 1.95826, -2.01865)
mesh = SubResource("ArrayMesh_xspq4")
skeleton = NodePath("")
[node name="DOOR?_B_CUT" type="CSGBox3D" parent="."]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, -0.0339377, -0.127415, -2.00389)
use_collision = true
size = Vector3(3.8, 3.8, 0.25)
material = SubResource("StandardMaterial3D_4xu2u")
[node name="CA_WALL_Back" type="MeshInstance3D" parent="DOOR?_B_CUT"]
transform = Transform3D(-2, 0, 1.74846e-07, 0, 0.10779, 0, -1.74846e-07, 0, -2, -8.67993e-07, 2.01413, -1.90927)
mesh = SubResource("ArrayMesh_hevci")
skeleton = NodePath("")

View File

@@ -7,36 +7,11 @@ func _ready():
dungeon_done_generating.connect(remove_unused_doors_and_walls)
func remove_unused_doors_and_walls():
if get_door_by_node($"CSGBox3D/DOOR?_F_CUT").get_room_leads_to() is DungeonRoom3D:
$"CORRIDOR/CA_WALL_Front".queue_free()
else:
$"CORRIDOR/CA_WALL_Front".visible = true
if get_door_by_node($"CSGBox3D/DOOR?_R_CUT").get_room_leads_to() is DungeonRoom3D:
$"CORRIDOR/CA_WALL_Right".queue_free()
else:
$"CORRIDOR/CA_WALL_Right".visible = true
if get_door_by_node($"CSGBox3D/DOOR?_B_CUT").get_room_leads_to() is DungeonRoom3D:
$"CORRIDOR/CA_WALL_Back".queue_free()
else:
$"CORRIDOR/CA_WALL_Back".visible = true
if get_door_by_node($"CSGBox3D/DOOR?_L_CUT").get_room_leads_to() is DungeonRoom3D:
$"CORRIDOR/CA_WALL_Left".queue_free()
else:
$"CORRIDOR/CA_WALL_Left".visible = true
var frontDoorConnection = get_door_by_node($"CSGBox3D/DOOR?_F_CUT").get_room_leads_to();
var leftDoorConnection = get_door_by_node($"CSGBox3D/DOOR?_L_CUT").get_room_leads_to();
var rightDoorConnection = get_door_by_node($"CSGBox3D/DOOR?_R_CUT").get_room_leads_to();
var backDoorConnection = get_door_by_node($"CSGBox3D/DOOR?_B_CUT").get_room_leads_to();
if (frontDoorConnection is not DungeonRoom3D or frontDoorConnection.name.contains("Corridor")) and (leftDoorConnection is not DungeonRoom3D or leftDoorConnection.name.contains("Corridor")):
$"CORRIDOR/CA_COLUMN_FL".visible = true
if (frontDoorConnection is not DungeonRoom3D or frontDoorConnection.name.contains("Corridor")) and (rightDoorConnection is not DungeonRoom3D or rightDoorConnection.name.contains("Corridor")):
$"CORRIDOR/CA_COLUMN_FR".visible = true
if (backDoorConnection is not DungeonRoom3D or backDoorConnection.name.contains("Corridor")) and (leftDoorConnection is not DungeonRoom3D or leftDoorConnection.name.contains("Corridor")):
$"CORRIDOR/CA_COLUMN_BL".visible = true
if (backDoorConnection is not DungeonRoom3D or backDoorConnection.name.contains("Corridor")) and (rightDoorConnection is not DungeonRoom3D or rightDoorConnection.name.contains("Corridor")):
$"CORRIDOR/CA_COLUMN_BR".visible = true
for door in get_doors():
if door.get_room_leads_to() == null:
door.door_node.queue_free()
if get_door_by_node($"DOOR?_F_CUT").get_room_leads_to() != null:
$"DOOR?_F_CUT".queue_free()
if get_door_by_node($"DOOR?_R_CUT").get_room_leads_to() != null:
$"DOOR?_R_CUT".queue_free()
if get_door_by_node($"DOOR?_B_CUT").get_room_leads_to() != null:
$"DOOR?_B_CUT".queue_free()
if get_door_by_node($"DOOR?_L_CUT").get_room_leads_to() != null:
$"DOOR?_L_CUT".queue_free()