title: Rotating camera around the X-axis (three.js)
body: <p>I am trying to rotate the camera around to X-axis of the scene. <br>
  At this point my code is like this:</p>
  
  <pre><code>rotation += 0.05;
  camera.position.y = Math.sin(rotation) * 500;
  camera.position.z = Math.cos(rotation) * 500;
  </code></pre>
  
  <p>This makes the camera move around but during the rotation something weird happens and either the camera flips, or it skips some part of the imaginary circle it's following.</p>