sparks.js
sparks.js copied to clipboard
SphereCapZone
I am bit confused by how this works? I cant get it to make a simple sphere, i keep on getting something that looks like a cone. What do you mean by Cap??
sparksEmitter.addInitializer(new SPARKS.Position( new SPARKS.SphereCapZone( 0,0,0,0,100,359) ) );
should i implement one myself ?
http://devmaster.net/forums/topic/7525-uniform-random-point-inside-circle/
The sphereCap if I do not remember wrongly, covers a fraction of the surface of a sphere - I probably refer to that the stardust library. I'm not too satisfied with this implementation too, so its probably easier and better to implement your own! :)