Hello I am working on a third person game and I can’t figure out how to make the third person camera from cinemachine angle with the mouse Y position from the new input system .
How do i change my camera euler angle ?
private void TurnWithMouse()
{
xRotation -= mousePosition.y;
xRotation = Mathf.Clamp(xRotation, -30f, 50f);
Vector3 targetRotation = head.transform.eulerAngles;
targetRotation.x = xRotation;
head.eulerAngles = targetRotation;
playerCamera.eulerAngles = targetRotation;
/* Debug.Log(playerCamera.eulerAngles);*/
transform.Rotate(Vector3.up, mousePosition.x * Time.deltaTime * mouseSensitivityX);
}