title: Moving 3D camera up and down around a central point in ThreeJs
body: <p>i am making a very basic application in ThreeJs, i have an object in the center and 2 sliders (horizontal rotation and vertical rotation). Both sliders output an integer between 0 and 360. So far i managed to move my camera around the object horizontally with the first slider. But i want to be able to move the camera up and down around the object with the second slider, and i cannot figure out the correct math.</p>
  
  <p>Here is what my equations look like at the moment:</p>
  
  <pre><code>camera.position.x =  originX + radius * Math.cos(horizontal_degrees*(Math.PI/180));
  camera.position.z =  originY + radius *Math.sin(controls.horizontal_rotation(Math.PI/180));
  camera.position.y=  //??? i can't figure this out.
  camera.lookAt(scene.position);
  </code></pre>