title: Calculate points around a sphere
body: <p>How can I calculate points around a sphere? I need this for my particles explosion. I don't want the particle's points to be all random. I need them in a spherical pattern.
  For 2d circle explosion I was using this:</p>
  
  <pre><code>float n=many;
  float rad = 1;
  for (int i = 0; i &lt; n; i++)
  {
          float fi = 2*PI*i/n;
          float x1 = rad*sin(fi + PI)+x ;
          float y1 = rad*cos(fi + PI)+y ;
          addparticlesmart(x,y,(x1-x),(y1-y), 0.01f),r,g,b,a,0.02f);
  }
  </code></pre>