title: Finding point on sphere
body: <p>So I need to find the point on a sphere's surface using the radius, the center of the circle and the rotation vector. I have this equation right now:</p>
  
  <pre><code>x = position.x + radius * Math.cos(rotation.x) * Math.sin(rotation.y)
  y = position.y + radius * Math.sin(rotation.x) * Math.sin(rotation.y)
  z = position.z + radius * Math.sin(rotation.y)
  </code></pre>
  
  <p>This formula produces crazy results that are totally not what I need at all. I quite honestly have no idea what I've done wrong, I tried to use the formula I found here:
  <a href="https://stackoverflow.com/questions/969798/plotting-a-point-on-the-edge-of-a-sphere">Finding Point on sphere</a></p>
  
  <p>But it didn't work. What have I done wrong?</p>