finding the local rotation of the camera

I think camerashake use something like a camera offset, but you need to dig in.