Procedual Animation Hand Fix

See "Procedual Animation Hand Fix" issue
This commit is contained in:
juliuse98
2021-11-28 20:21:47 +01:00
parent a4fb6b9f33
commit 58092d6b7e
18 changed files with 1479 additions and 3584 deletions

View File

@@ -161,7 +161,6 @@ public class PlayerController : NetworkBehaviour
moveDirection = new Vector3(moveDirection.x, 0, moveDirection.z);
currentDir = moveDirection;
}
Debug.Log(currentMaxSpeed);
velocity = Vector3.SmoothDamp(velocity, currentDir * currentMaxSpeed + new Vector3(0, velocityY, 0),ref refVelocity,moveSmoothTime);
localVelocity = transform.InverseTransformDirection(velocity);
controller.Move(velocity * Time.deltaTime);