You know how when you’re using a controller, you can SLIGHTLY move the joystick and the character turns slowly? I tried to do that with the new input system and the value goes straight to 1.
*
I need to know how to get the float value of the input action. Please help <3
*
private void UpdateRotation()
{
Vector2 rotationAxis = rotationInput.ReadValue();
yRot -= rotationAxis.y * rotationSpeed; //goes straight to 1 or -1, i want float value instead
xRot += rotationAxis.x * rotationSpeed; //goes straight to 1 or -1, i want float value instead
//Debug.Log($"Y {rotationAxis.y}");
//Debug.Log($"X {rotationAxis.x}");
yRot = Mathf.Clamp(yRot, -80f, 75f);
HeadTargetTransform.rotation = Quaternion.Euler(yRot, xRot, transform.eulerAngles.z);
}