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,28 +1,30 @@
[gd_scene load_steps=8 format=3 uid="uid://8ukphol1isp2"]
[gd_scene load_steps=9 format=3 uid="uid://col60npvg7wr1"]
[ext_resource type="Script" path="res://Levels/Scripts/Level.cs" id="1_ri27i"]
[ext_resource type="PackedScene" uid="uid://jgf7k1r35km1" path="res://Levels/ExitPortal.tscn" id="3_0wdh0"]
[ext_resource type="PackedScene" uid="uid://dldy6w23fyr5t" path="res://Levels/Models/Stage6/Stage6.tscn" id="3_ajkvk"]
[ext_resource type="PackedScene" uid="uid://cy07ovg33vws6" path="res://Levels/Models/Stage5/Stage5.tscn" id="3_2gs3j"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_wu0in"]
[sub_resource type="CylinderShape3D" id="CylinderShape3D_a8pxa"]
radius = 0.957319
[sub_resource type="BoxShape3D" id="BoxShape3D_ismub"]
[sub_resource type="BoxShape3D" id="BoxShape3D_lhf45"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_f5ly1"]
[sub_resource type="BoxShape3D" id="BoxShape3D_g5uqx"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_ovwgx"]
[sub_resource type="BoxShape3D" id="BoxShape3D_7mryj"]
size = Vector3(5, 20, 27.822)
[sub_resource type="BoxShape3D" id="BoxShape3D_1rqjd"]
[sub_resource type="BoxShape3D" id="BoxShape3D_2edgb"]
size = Vector3(5, 20, 27.822)
[node name="Level6" type="Node3D" groups=["Level"]]
[node name="Level5" type="Node3D" groups=["Level"]]
process_mode = 3
script = ExtResource("1_ri27i")
[node name="Area3D2" type="Area3D" parent="." groups=["Level"]]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.94617, 0, -1.55156)
transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, -0.0656219, 0, -3.04094)
disable_mode = 2
collision_layer = 0
collision_mask = 0
@@ -31,29 +33,28 @@ collision_mask = 0
transform = Transform3D(0.7, 0, 0, 0, 0.7, 0, 0, 0, 0.7, 0, 0, -2.53252)
[node name="CollisionShape3D" type="CollisionShape3D" parent="Area3D2"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.07326, -2.51823)
shape = SubResource("CylinderShape3D_wu0in")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.02346, -2.51823)
shape = SubResource("CylinderShape3D_a8pxa")
[node name="STAGE 6" parent="." instance=ExtResource("3_ajkvk")]
[node name="STAGE 5" parent="." instance=ExtResource("3_2gs3j")]
[node name="StaticBody3D" type="StaticBody3D" parent="."]
collision_layer = 0
collision_mask = 0
[node name="CollisionShape3D" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.52066, 2.71587, 0)
shape = SubResource("BoxShape3D_ismub")
shape = SubResource("BoxShape3D_lhf45")
[node name="CollisionShape3D2" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 7.39414, 0, 0)
shape = SubResource("BoxShape3D_f5ly1")
shape = SubResource("BoxShape3D_g5uqx")
[node name="CollisionShape3D3" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 2.43488, -8.5122)
shape = SubResource("BoxShape3D_ovwgx")
shape = SubResource("BoxShape3D_7mryj")
[node name="CollisionShape3D4" type="CollisionShape3D" parent="StaticBody3D"]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 0, 0, 9.03101)
shape = SubResource("BoxShape3D_1rqjd")
shape = SubResource("BoxShape3D_2edgb")
[connection signal="body_entered" from="Area3D2" to="." method="OnExitEntered"]