diff --git a/chunk.gd b/chunk.gd index 6e5a65d..a016152 100644 --- a/chunk.gd +++ b/chunk.gd @@ -35,8 +35,6 @@ func update() -> void: continue if i == 0: #n - #$n.position.y = 1 - var vertices = PackedVector3Array() vertices.push_back(Vector3(-STREET_WIDTH/2, 0.5, -Global.chunk_size/2)) vertices.push_back(Vector3(STREET_WIDTH/2 , 0.5, -Global.chunk_size/2)) @@ -57,8 +55,6 @@ func update() -> void: add_child(m) $BuildingAreas/B_area_N/Collision.disabled = true if i == 1: #s - #$s.position.y = 1 - var vertices = PackedVector3Array() vertices.push_back(Vector3(-STREET_WIDTH/2, 0.5, 0)) vertices.push_back(Vector3(STREET_WIDTH/2, 0.5, 0)) @@ -79,8 +75,6 @@ func update() -> void: add_child(m) $BuildingAreas/B_area_S/Collision.disabled = true if i == 2: #w - #$w.position.y = 1 - var vertices = PackedVector3Array() vertices.push_back(Vector3(-Global.chunk_size/2, 0.5, -STREET_WIDTH/2)) vertices.push_back(Vector3(0, 0.5, -STREET_WIDTH/2)) @@ -101,8 +95,6 @@ func update() -> void: add_child(m) $BuildingAreas/B_area_W/Collision.disabled = true if i == 3: #e - #$e.position.y = 1 - var vertices = PackedVector3Array() vertices.push_back(Vector3(0, 0.5, -STREET_WIDTH/2)) vertices.push_back(Vector3(Global.chunk_size/2, 0.5, -STREET_WIDTH/2)) diff --git a/chunk.tscn b/chunk.tscn index e844616..c1c808b 100644 --- a/chunk.tscn +++ b/chunk.tscn @@ -30,9 +30,6 @@ albedo_color = Color(0, 0, 1, 1) [sub_resource type="BoxShape3D" id="BoxShape3D_kdh3y"] size = Vector3(55, 50, 55) -[sub_resource type="BoxMesh" id="BoxMesh_eat54"] -size = Vector3(55, 50, 55) - [sub_resource type="BoxShape3D" id="BoxShape3D_a0kup"] size = Vector3(55, 50, 40) @@ -84,9 +81,7 @@ collision_mask = 7 [node name="CollisionShape3D" type="CollisionShape3D" parent="BuildingAreas/B_area_1" unique_id=1067780811] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -47.5, 0, 47.5) shape = SubResource("BoxShape3D_kdh3y") - -[node name="MeshInstance3D" type="MeshInstance3D" parent="BuildingAreas/B_area_1/CollisionShape3D" unique_id=1873626407] -mesh = SubResource("BoxMesh_eat54") +debug_color = Color(0.7365185, 0.46945518, 0, 0.41960785) [node name="B_area_2" type="StaticBody3D" parent="BuildingAreas" unique_id=34391878] collision_mask = 7 @@ -94,9 +89,7 @@ collision_mask = 7 [node name="CollisionShape3D" type="CollisionShape3D" parent="BuildingAreas/B_area_2" unique_id=1293591314] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 47.5, 0, 47.5) shape = SubResource("BoxShape3D_kdh3y") - -[node name="MeshInstance3D" type="MeshInstance3D" parent="BuildingAreas/B_area_2/CollisionShape3D" unique_id=1793580624] -mesh = SubResource("BoxMesh_eat54") +debug_color = Color(0.7365185, 0.46945518, 0, 0.41960785) [node name="B_area_3" type="StaticBody3D" parent="BuildingAreas" unique_id=1586518106] collision_mask = 7 @@ -104,9 +97,7 @@ collision_mask = 7 [node name="CollisionShape3D" type="CollisionShape3D" parent="BuildingAreas/B_area_3" unique_id=2115157432] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -47.5, 0, -47.5) shape = SubResource("BoxShape3D_kdh3y") - -[node name="MeshInstance3D" type="MeshInstance3D" parent="BuildingAreas/B_area_3/CollisionShape3D" unique_id=1402165923] -mesh = SubResource("BoxMesh_eat54") +debug_color = Color(0.7365185, 0.46945518, 0, 0.41960785) [node name="B_area_4" type="StaticBody3D" parent="BuildingAreas" unique_id=898383723] collision_mask = 7 @@ -114,9 +105,7 @@ collision_mask = 7 [node name="CollisionShape3D" type="CollisionShape3D" parent="BuildingAreas/B_area_4" unique_id=1612111692] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 47.5, 0, -47.5) shape = SubResource("BoxShape3D_kdh3y") - -[node name="MeshInstance3D" type="MeshInstance3D" parent="BuildingAreas/B_area_4/CollisionShape3D" unique_id=1227151220] -mesh = SubResource("BoxMesh_eat54") +debug_color = Color(0.7365185, 0.46945518, 0, 0.41960785) [node name="B_area_E" type="StaticBody3D" parent="BuildingAreas" unique_id=164651542] transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 47.5, 0, 0)