Answers for "Sphere made of cubes algorithm"
http://answers.unity.com/questions/142630/sphere-made-of-cubes-algorithm.html
The latest answers for the question "Sphere made of cubes algorithm"Answer by flaviusxvii
http://answers.unity.com/answers/142682/view.html
The code you have will work, you just need to check to see if transform.position + Vector3(x,y,z) is *in* the target sphere, an only instantiate if it is.Tue, 12 Jul 2011 19:39:44 GMTflaviusxviiAnswer by Peter G
http://answers.unity.com/answers/142656/view.html
I haven't tried this, but this blog post seems to describe exactly what you want.
http://entitycrisis.blogspot.com/2011/02/uniform-points-on-sphere.htmlTue, 12 Jul 2011 18:28:40 GMTPeter GAnswer by Chris D
http://answers.unity.com/answers/142645/view.html
While I'm thinking of a better (more efficient) option, why not find the (cubic) bounds of the sphere you want to convert, flood it with cubes of the resolution you want, then run a quick collision check to see which of the cubes are held within the sphere?
It seems like this would work but, again, I can't imagine it's the **best** way to go about it.Tue, 12 Jul 2011 18:03:20 GMTChris D