Lock Camera Rotation in 3D

How can I lock the camera’s x and z rotation so it just rotates on the y axis?

Kind regards,
Creator27

The easiest way is to set x and z to zero every draw cycle.

@UberGoober, I forgot to mention that the camera is parented to the player and the players z axis changes when you move your finger on the screen.