Hey all. I'm trying to implement some camera smoothing/interpolation. Here are the relevant chunks of code:
public void OnLook(InputAction.CallbackContext context)
{
camAngleTo = Quaternion.Euler(0, context.ReadValue<Vector2>().x/* * (mouseSensitivityX * .01f)*/, 0);
}
void Update()
{
camPivot.transform.rotation = Quaternion.Lerp(camPivot.transform.rotation, camAngleTo, .01f);
}