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://c4xcka4ekuur8"]
[gd_scene load_steps=12 format=3 uid="uid://c4xcka4ekuur8"]
[ext_resource type="PackedScene" uid="uid://b6ciyf30f07ll" path="res://Levels/Models/Stage8/STAGE 8.glb" id="2_wcvbl"]
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Levels/ExitPortal.tscn" id="3_44edv"]
@@ -15,9 +15,21 @@ size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_gb7u1"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_yia8d"]
[sub_resource type="BoxShape3D" id="BoxShape3D_xm3ae"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_53dlo"]
size = Vector3(8.31406, 11.3263, 1.28984)
[sub_resource type="BoxShape3D" id="BoxShape3D_skfbp"]
size = Vector3(5.53526, 11.3263, 1.28984)
[sub_resource type="BoxShape3D" id="BoxShape3D_eif41"]
size = Vector3(3.8611, 11.3263, 1.28984)
[sub_resource type="BoxShape3D" id="BoxShape3D_vmmcb"]
size = Vector3(1, 2.48491, 2.18519)
[node name="Level8" type="Node3D" groups=["Level"]]
process_mode = 3
@@ -36,24 +48,43 @@ shape = SubResource("CylinderShape3D_3ne7n")
[node name="STAGE 8" parent="." instance=ExtResource("2_wcvbl")]
[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.52066, 2.71587, 0)
shape = SubResource("BoxShape3D_3n0wx")
[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.39414, 0, 0)
shape = SubResource("BoxShape3D_bimq8")
[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.5122)
shape = SubResource("BoxShape3D_gb7u1")
[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.03101)
shape = SubResource("BoxShape3D_yia8d")
shape = SubResource("BoxShape3D_xm3ae")
[node name="CollisionShape3D5" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.01915, 0, 3.9733)
shape = SubResource("BoxShape3D_53dlo")
[node name="CollisionShape3D6" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.828593, 0, 1.31948)
shape = SubResource("BoxShape3D_53dlo")
[node name="CollisionShape3D7" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.39582, 0, -0.803743)
shape = SubResource("BoxShape3D_skfbp")
[node name="CollisionShape3D8" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.875, 0, -2.72859)
shape = SubResource("BoxShape3D_eif41")
[node name="CollisionShape3D9" type="CollisionShape3D" parent="Collisions"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -2.89654, 0.175385, -2.12349)
shape = SubResource("BoxShape3D_vmmcb")
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]