inputX; //left and right input values
// Rotate left/right based on the y-axis
transform.Rotate(0, -inputX * angularSpeed * Time.deltaTime, 0);
// Tilt left and right based on the z-axis, which is the forward direction on the x-z axis
transform.rotation = Quaternion.Euler(0, 0, -inputX * rotationAngle );
… I entered these two things in a row, but they don’t work at the same time; only one of them works;;
If you go left, lean left
If it goes to the right, please help me tilt it to the right.