I want to rotate a character in a top-down game using arrow keys. I’ve been able to find mouse tracking tutorials but I can’t find gamepad tutorials. I think I am on the right track, but at the moment rotations snap and horizontal rotation isn’t working correctly. I want smooth rotation:
float deltaH = Input.GetAxis("P1_Rotate_Horizontal") * 180;
float deltaV = Input.GetAxis("P1_Rotate_Vertical") * 90;
float newZRot = deltaH + deltaV;
transform.rotation = Quaternion.Euler(0, 0, newZRot);