better stairs
This commit is contained in:
parent
34e20b9e84
commit
e1e1d65fcc
2 changed files with 7 additions and 8 deletions
|
@ -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"]
|
||||
|
|
|
@ -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)
|
||||
#
|
||||
|
|
Loading…
Add table
Reference in a new issue