Answers for "Lock Z rotation to 0"http://answers.unity.com/questions/1075109/lock-z-rotation-to-0.html
The latest answers for the question "Lock Z rotation to 0"Answer by TheDawningLegendhttp://answers.unity.com/answers/1075640/view.html
Ive fixed the problem using something else. Thanks for the help guys, i wouldn't have learned the gimbal thing without you.Sat, 03 Oct 2015 14:38:00 GMTTheDawningLegendAnswer by KwahuNashobahttp://answers.unity.com/answers/1075221/view.html
Rotation by Euler angles can be pretty much unpredictable, if you want to know how it works and what is down side of it look this video https://www.youtube.com/watch?v=zc8b2Jo7mno . Like @meat5000 said, it may be that gimbal lock occured.
Try this:
transform.rotation *= Quaternion.Euler(cameraMovementsX , cameraMovementsY, 0f) * Time.deltaTime;Fri, 02 Oct 2015 08:31:12 GMTKwahuNashoba