Mouse Look Head bob

Hi all, I’ve a little problem with my camera bob, the problem is that the camera Mouse Look on Y-Axis stop all other rotation. My camera bob is based on a local rotation on Z-Axis, and if I disable the Mouse Look it works fine, but if I don’t disable it…

So someone can say me how to do a Mouse Look script that don’t modify all axes of his quaternion but only the Y-Axis, I’ve tryed with transform.Rotate();, and it should work fine, but I’ve problem with clamping the rotation… Please help me…

My suggestion would be to attach the camera to a separate child object, and then handle any cosmetic animations or movements (such as ‘bobbing’) using the local transform of the child object.

Oh yes, why I didn’t think before that, I’ll try it now…

How I thought It works fine, thanks for your suggestion :smile: