I’ve recently converted my code over to the new input system. The player is able to see their characters limbs in first person and when they move diagonally the animations play at half speed, this behavior wasn’t present in the old input system.
Here is a video more clearly showing what’s happening.
n4c9mq
//InputManagerScript
x = inputMaster.Player.Move.ReadValue<Vector2>().x;
z = inputMaster.Player.Move.ReadValue<Vector2>().y;
Movement.Move(x,z);
//MovementScript
Vector3 move = transform.right * X + transform.forward * Z;
controller.Move(move.normalized * speed * Time.deltaTime);
if(anim[0] != null) //Legs
{
anim[0].SetFloat("Z", Z, smoothBlend, Time.deltaTime);
anim[0].SetFloat("X", X, smoothBlend, Time.deltaTime);
}
if (anim[1] != null) //Arms
{
anim[1].SetFloat("Z", Z, smoothBlend, Time.deltaTime);
anim[1].SetFloat("X", X, smoothBlend, Time.deltaTime);
}