From 89551b49f35fcfef6ba5e6619dc75c4a89eea8c9 Mon Sep 17 00:00:00 2001 From: isaacwarholpond Date: Fri, 21 Nov 2025 14:24:01 -0800 Subject: [PATCH] dash --- Assets/Scripts/PlayerMovement.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/PlayerMovement.cs b/Assets/Scripts/PlayerMovement.cs index e19c5a9..c5e8fb9 100644 --- a/Assets/Scripts/PlayerMovement.cs +++ b/Assets/Scripts/PlayerMovement.cs @@ -205,7 +205,7 @@ public class PlayerMovement : MonoBehaviour velocity.y += gravity * Time.deltaTime; - Debug.Log(controller.isGrounded); + //Debug.Log(controller.isGrounded); if (canWalk /*&& !running*/) { @@ -472,6 +472,7 @@ public class PlayerMovement : MonoBehaviour myCollider.excludeLayers = excludeEnemy; Debug.Log($"distance:{dashDistance}"); //rb.AddForce(Camera.main.transform.forward * dashDistance, ForceMode.Impulse); + controller.Move(Camera.main.transform.forward * dashDistance / 15); swung = true; swungTimer = 0; timeSinceLastSwing = 0;