diff --git a/Assets/Scripts/Player/UnitMovementHandler.cs b/Assets/Scripts/Player/UnitMovementHandler.cs index 74fd554..42a6a85 100644 --- a/Assets/Scripts/Player/UnitMovementHandler.cs +++ b/Assets/Scripts/Player/UnitMovementHandler.cs @@ -56,8 +56,6 @@ namespace Reset.Units{ // } // Debug viewing - - // Smoothed Values [ShowInInspector, ReadOnly] private float outputSpeed; [ShowInInspector, ReadOnly] private Vector3 outputMoveDirection; @@ -82,7 +80,6 @@ namespace Reset.Units{ // DoMovement(); } - private void UpdateCurrentDirection(){ // Construct move direction @@ -200,7 +197,7 @@ namespace Reset.Units{ public void DoMovement(Vector3 moveDir, float speed){ Debug.Log( outputMoveDirection);; - controller.Move(moveDir * speed * Time.deltaTime); + controller.Move((Camera.main.transform.rotation.Flatten(0, null, 0) * (moveDir * speed) * Time.deltaTime)); } public void LateUpdate(){