控制器凸轮和播放器的rb
public void controladortrajeCamLibre(){///camara libre
Vector2 md = new Vector2 (Input.GetAxisRaw ("Mouse X"), Input.GetAxisRaw ("Mouse Y")); md = Vector2.Scale (md, new Vector2 (sensitivity * smothing, sensitivity * smothing));
smoothV.x = Mathf.Lerp (smoothV.x, md.x, 1.0f / smothing);
smoothV.y = Mathf.Lerp (smoothV.y, md.y, 1.0f / smothing);
mouseLook += smoothV;
cam.transform.localRotation = Quaternion.AngleAxis (-mouseLook.y, Vector3.right);
character.transform.localRotation = Quaternion.AngleAxis (mouseLook.x, character.transform.up);
}