better stairs

This commit is contained in:
Holly Stubbs 2025-02-04 22:39:22 +00:00
parent 34e20b9e84
commit e1e1d65fcc
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E
2 changed files with 7 additions and 8 deletions

View file

@ -7,8 +7,7 @@
[ext_resource type="Texture2D" uid="uid://c5p7utpptgtww" path="res://GFX/BlinkMeter.jpg" id="5_iwhsa"]
[ext_resource type="Texture2D" uid="uid://den5phi138pyh" path="res://GFX/StaminaMeter.jpg" id="6_g44nt"]
[sub_resource type="BoxShape3D" id="BoxShape3D_7hapa"]
size = Vector3(1, 2, 1)
[sub_resource type="CylinderShape3D" id="CylinderShape3D_bsew3"]
[sub_resource type="BoxMesh" id="BoxMesh_vju81"]
size = Vector3(1, 2, 1)
@ -26,14 +25,14 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.75, 0)
[node name="Collision" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
shape = SubResource("BoxShape3D_7hapa")
shape = SubResource("CylinderShape3D_bsew3")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Collision"]
visible = false
mesh = SubResource("BoxMesh_vju81")
[node name="SepRay1" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.5, -0.75)
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.5, -0.55)
shape = SubResource("SeparationRayShape3D_u64q7")
[node name="RayCast3D" type="RayCast3D" parent="SepRay1"]
@ -42,7 +41,7 @@ enabled = false
target_position = Vector3(0, -0.55, 0)
[node name="SepRay2" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.5, -0.75)
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.5, -0.55)
shape = SubResource("SeparationRayShape3D_u64q7")
[node name="RayCast3D" type="RayCast3D" parent="SepRay2"]
@ -51,7 +50,7 @@ enabled = false
target_position = Vector3(0, -0.55, 0)
[node name="SepRay3" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.5, -0.75)
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.5, -0.55)
shape = SubResource("SeparationRayShape3D_u64q7")
[node name="RayCast3D" type="RayCast3D" parent="SepRay3"]

View file

@ -133,8 +133,8 @@ func _process(delta: float) -> void:
#Local tempchn%
if not UnableToMove:
Shake = fmod((Shake + delta * min(Sprint, 1.5) * 7), 720)
#if shake < 180 and fmod(Shake, 360) >= 180 and KillTimer >= 0:
#print("step sound")
if shake < 180 and fmod(Shake, 360) >= 180 and KillTimer >= 0:
print("step sound")
#if CurrStepSFX == 0:
#temp = GetStepSound(Collider)
#