added wall running and jumping

This commit is contained in:
Derek
2025-02-18 22:58:01 -06:00
parent be729ac78f
commit 1d75036a31
7 changed files with 251 additions and 35 deletions

View File

@@ -220,7 +220,7 @@ transform = Transform3D(1, 0, 0, 0, 0.992332, 0.123601, 0, -0.123601, 0.992332,
[node name="BulletRay" type="RayCast3D" parent="Head/Recoil/Camera3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -0.487738)
target_position = Vector3(0, 0, -200)
collision_mask = 233
collision_mask = 105
collide_with_areas = true
script = ExtResource("10_ektr6")
@@ -313,9 +313,22 @@ libraries = {
"": SubResource("AnimationLibrary_d0x8a")
}
[node name="velocity_ray" type="RayCast3D" parent="."]
transform = Transform3D(1, -2.21121e-11, 5.69206e-32, 2.21121e-11, 1, 0, -5.69206e-32, 1.25837e-42, 1, 0.000168126, -1.01843, -0.00105944)
[node name="wall_ray1" type="RayCast3D" parent="."]
transform = Transform3D(1, -4.26326e-11, -5.82077e-11, 3.6664e-11, 1, 0, 0, 0, 1, 8.1824e-07, -0.00495505, -5.15778e-06)
target_position = Vector3(-1, 0, 0)
[node name="wall_ray2" type="RayCast3D" parent="."]
transform = Transform3D(1, -4.26326e-11, -5.82077e-11, 3.6664e-11, 1, 0, 0, 0, 1, 8.1824e-07, -0.00495505, -5.15778e-06)
target_position = Vector3(1, 0, 0)
[node name="wall_ray3" type="RayCast3D" parent="."]
transform = Transform3D(1, -4.26326e-11, -5.82077e-11, 3.6664e-11, 1, 0, 0, 0, 1, 8.1824e-07, -0.00495505, -5.15778e-06)
target_position = Vector3(0, 0, 1)
[node name="WallJumpTimer" type="Timer" parent="."]
one_shot = true
[connection signal="tree_entered" from="." to="." method="_on_tree_entered"]
[connection signal="body_entered" from="pick_up_detection" to="." method="_on_pick_up_detection_body_entered"]
[connection signal="body_entered" from="pick_up_magnet" to="." method="_on_pick_up_magnet_body_entered"]
[connection signal="timeout" from="WallJumpTimer" to="." method="_on_wall_jump_timer_timeout"]