Enable stage collisions

This commit is contained in:
Steven Long
2023-09-07 22:06:54 -07:00
parent 833ad3209e
commit 8e363587b9
21 changed files with 1927 additions and 179 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=8 format=3 uid="uid://bsq7edeueqyjg"]
[gd_scene load_steps=11 format=3 uid="uid://bsq7edeueqyjg"]
[ext_resource type="PackedScene" uid="uid://bgf5byqt71kir" path="res://Levels/Models/Stage7/Stage7.tscn" id="2_21i6n"]
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Levels/ExitPortal.tscn" id="3_sjnhq"]
@@ -18,6 +18,15 @@ size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_cxjq3"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_ge4e2"]
size = Vector3(2.77053, 2.8924, 1)
[sub_resource type="BoxShape3D" id="BoxShape3D_gjm78"]
size = Vector3(1, 2.90644, 1.7)
[sub_resource type="BoxShape3D" id="BoxShape3D_tj084"]
size = Vector3(4.32001, 3, 4.24331)
[node name="Level7" type="Node3D" groups=["Level"]]
process_mode = 3
@@ -37,24 +46,47 @@ shape = SubResource("CylinderShape3D_a56hv")
[node name="STAGE 7" parent="." instance=ExtResource("2_21i6n")]
transform = Transform3D(1.04, 0, 0, 0, 1.04, 0, 0, 0, 1.04, -0.601425, 0, 0)
[node name="StaticBody3D" type="StaticBody3D" parent="."]
collision_layer = 0
[node name="Collisions" type="StaticBody3D" parent="."]
collision_mask = 0
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.80235, 2.71587, 0)
shape = SubResource("BoxShape3D_ny8q1")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D"]
[node name="CollisionShape3D2" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.61603, 0, 0)
shape = SubResource("BoxShape3D_3bvlx")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D"]
[node name="CollisionShape3D3" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 2.43488, -8.7119)
shape = SubResource("BoxShape3D_xgagj")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D"]
[node name="CollisionShape3D4" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 9.24233)
shape = SubResource("BoxShape3D_cxjq3")
[node name="CollisionShape3D5" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.89436, 0.680679, 3.12594)
shape = SubResource("BoxShape3D_ge4e2")
[node name="CollisionShape3D8" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 3.60186, 0.680679, 3.12594)
shape = SubResource("BoxShape3D_ge4e2")
[node name="CollisionShape3D6" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.05087, 0.680679, 2.12594)
shape = SubResource("BoxShape3D_gjm78")
[node name="CollisionShape3D7" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.83834, 0.680679, 2.12594)
shape = SubResource("BoxShape3D_gjm78")
[node name="CollisionShape3D9" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.94626, -0.500153, -4.0788)
shape = SubResource("BoxShape3D_tj084")
[node name="CollisionShape3D10" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.2062, -0.500153, -4.0788)
shape = SubResource("BoxShape3D_tj084")
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]