This commit is contained in:
2025-11-21 14:24:01 -08:00
parent 70d60bfcd9
commit 89551b49f3

View File

@@ -205,7 +205,7 @@ public class PlayerMovement : MonoBehaviour
velocity.y += gravity * Time.deltaTime; velocity.y += gravity * Time.deltaTime;
Debug.Log(controller.isGrounded); //Debug.Log(controller.isGrounded);
if (canWalk /*&& !running*/) if (canWalk /*&& !running*/)
{ {
@@ -472,6 +472,7 @@ public class PlayerMovement : MonoBehaviour
myCollider.excludeLayers = excludeEnemy; myCollider.excludeLayers = excludeEnemy;
Debug.Log($"distance:{dashDistance}"); Debug.Log($"distance:{dashDistance}");
//rb.AddForce(Camera.main.transform.forward * dashDistance, ForceMode.Impulse); //rb.AddForce(Camera.main.transform.forward * dashDistance, ForceMode.Impulse);
controller.Move(Camera.main.transform.forward * dashDistance / 15);
swung = true; swung = true;
swungTimer = 0; swungTimer = 0;
timeSinceLastSwing = 0; timeSinceLastSwing = 0;