mirror of
https://github.com/DerTyp7/defrain-shooter-unity.git
synced 2025-10-30 21:17:09 +01:00
Procedual Animation Hand Fix
See "Procedual Animation Hand Fix" issue
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user