I have my camera rotation equal to input.gyroscope.attitude in each update. The idea is that the phone orientation is used to orient the game camera like in the real world. The problem is that the camera is way too jittery with this code and needs to be smooth.
I tried doing something like:
Quaternion.Slerp(transform.rotation, new Quaternion(-Input.gyro.attitude.x,-Input.gyro.attitude.y,
Input.gyro.attitude.z, Input.gyro.attitude.w), Time.deltaTime * smooth);
But this is still pretty jittery no matter what variable I put as smooth.
What can I do to smooth things out?