feat: Remove chunk building collision meshes
This commit is contained in:
parent
3d7353b6b5
commit
fffbf0a086
8
chunk.gd
8
chunk.gd
|
|
@ -35,8 +35,6 @@ func update() -> void:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if i == 0: #n
|
if i == 0: #n
|
||||||
#$n.position.y = 1
|
|
||||||
|
|
||||||
var vertices = PackedVector3Array()
|
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))
|
||||||
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)
|
add_child(m)
|
||||||
$BuildingAreas/B_area_N/Collision.disabled = true
|
$BuildingAreas/B_area_N/Collision.disabled = true
|
||||||
if i == 1: #s
|
if i == 1: #s
|
||||||
#$s.position.y = 1
|
|
||||||
|
|
||||||
var vertices = PackedVector3Array()
|
var vertices = PackedVector3Array()
|
||||||
vertices.push_back(Vector3(-STREET_WIDTH/2, 0.5, 0))
|
vertices.push_back(Vector3(-STREET_WIDTH/2, 0.5, 0))
|
||||||
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)
|
add_child(m)
|
||||||
$BuildingAreas/B_area_S/Collision.disabled = true
|
$BuildingAreas/B_area_S/Collision.disabled = true
|
||||||
if i == 2: #w
|
if i == 2: #w
|
||||||
#$w.position.y = 1
|
|
||||||
|
|
||||||
var vertices = PackedVector3Array()
|
var vertices = PackedVector3Array()
|
||||||
vertices.push_back(Vector3(-Global.chunk_size/2, 0.5, -STREET_WIDTH/2))
|
vertices.push_back(Vector3(-Global.chunk_size/2, 0.5, -STREET_WIDTH/2))
|
||||||
vertices.push_back(Vector3(0, 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)
|
add_child(m)
|
||||||
$BuildingAreas/B_area_W/Collision.disabled = true
|
$BuildingAreas/B_area_W/Collision.disabled = true
|
||||||
if i == 3: #e
|
if i == 3: #e
|
||||||
#$e.position.y = 1
|
|
||||||
|
|
||||||
var vertices = PackedVector3Array()
|
var vertices = PackedVector3Array()
|
||||||
vertices.push_back(Vector3(0, 0.5, -STREET_WIDTH/2))
|
vertices.push_back(Vector3(0, 0.5, -STREET_WIDTH/2))
|
||||||
vertices.push_back(Vector3(Global.chunk_size/2, 0.5, -STREET_WIDTH/2))
|
vertices.push_back(Vector3(Global.chunk_size/2, 0.5, -STREET_WIDTH/2))
|
||||||
|
|
|
||||||
19
chunk.tscn
19
chunk.tscn
|
|
@ -30,9 +30,6 @@ albedo_color = Color(0, 0, 1, 1)
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_kdh3y"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_kdh3y"]
|
||||||
size = Vector3(55, 50, 55)
|
size = Vector3(55, 50, 55)
|
||||||
|
|
||||||
[sub_resource type="BoxMesh" id="BoxMesh_eat54"]
|
|
||||||
size = Vector3(55, 50, 55)
|
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_a0kup"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_a0kup"]
|
||||||
size = Vector3(55, 50, 40)
|
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]
|
[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)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -47.5, 0, 47.5)
|
||||||
shape = SubResource("BoxShape3D_kdh3y")
|
shape = SubResource("BoxShape3D_kdh3y")
|
||||||
|
debug_color = Color(0.7365185, 0.46945518, 0, 0.41960785)
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="BuildingAreas/B_area_1/CollisionShape3D" unique_id=1873626407]
|
|
||||||
mesh = SubResource("BoxMesh_eat54")
|
|
||||||
|
|
||||||
[node name="B_area_2" type="StaticBody3D" parent="BuildingAreas" unique_id=34391878]
|
[node name="B_area_2" type="StaticBody3D" parent="BuildingAreas" unique_id=34391878]
|
||||||
collision_mask = 7
|
collision_mask = 7
|
||||||
|
|
@ -94,9 +89,7 @@ collision_mask = 7
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="BuildingAreas/B_area_2" unique_id=1293591314]
|
[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)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 47.5, 0, 47.5)
|
||||||
shape = SubResource("BoxShape3D_kdh3y")
|
shape = SubResource("BoxShape3D_kdh3y")
|
||||||
|
debug_color = Color(0.7365185, 0.46945518, 0, 0.41960785)
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="BuildingAreas/B_area_2/CollisionShape3D" unique_id=1793580624]
|
|
||||||
mesh = SubResource("BoxMesh_eat54")
|
|
||||||
|
|
||||||
[node name="B_area_3" type="StaticBody3D" parent="BuildingAreas" unique_id=1586518106]
|
[node name="B_area_3" type="StaticBody3D" parent="BuildingAreas" unique_id=1586518106]
|
||||||
collision_mask = 7
|
collision_mask = 7
|
||||||
|
|
@ -104,9 +97,7 @@ collision_mask = 7
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="BuildingAreas/B_area_3" unique_id=2115157432]
|
[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)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -47.5, 0, -47.5)
|
||||||
shape = SubResource("BoxShape3D_kdh3y")
|
shape = SubResource("BoxShape3D_kdh3y")
|
||||||
|
debug_color = Color(0.7365185, 0.46945518, 0, 0.41960785)
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="BuildingAreas/B_area_3/CollisionShape3D" unique_id=1402165923]
|
|
||||||
mesh = SubResource("BoxMesh_eat54")
|
|
||||||
|
|
||||||
[node name="B_area_4" type="StaticBody3D" parent="BuildingAreas" unique_id=898383723]
|
[node name="B_area_4" type="StaticBody3D" parent="BuildingAreas" unique_id=898383723]
|
||||||
collision_mask = 7
|
collision_mask = 7
|
||||||
|
|
@ -114,9 +105,7 @@ collision_mask = 7
|
||||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="BuildingAreas/B_area_4" unique_id=1612111692]
|
[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)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 47.5, 0, -47.5)
|
||||||
shape = SubResource("BoxShape3D_kdh3y")
|
shape = SubResource("BoxShape3D_kdh3y")
|
||||||
|
debug_color = Color(0.7365185, 0.46945518, 0, 0.41960785)
|
||||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="BuildingAreas/B_area_4/CollisionShape3D" unique_id=1227151220]
|
|
||||||
mesh = SubResource("BoxMesh_eat54")
|
|
||||||
|
|
||||||
[node name="B_area_E" type="StaticBody3D" parent="BuildingAreas" unique_id=164651542]
|
[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)
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 47.5, 0, 0)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue