public void OnLook(CallbackContext ctx) { Vector2 delta = ctx.ReadValue <Vector2>(); float headX = 0f; if (_freeLook) { headX = -delta.x; } else { _avatar.GetGameObject().transform.Rotate(new Vector3(0, delta.x, 0) * lookSensitivity); } Vector3 headRotate = new Vector3(headX, 0f, delta.y) * lookSensitivity; _headAngles = (_headAngles + headRotate).ClampAngles(headMin, headMax); Debug.Log(_headAngles); }