sparks.js icon indicating copy to clipboard operation
sparks.js copied to clipboard

SphereCapZone

Open renegademaster88 opened this issue 12 years ago • 1 comments

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/

renegademaster88 avatar Mar 02 '12 10:03 renegademaster88

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! :)

zz85 avatar Mar 02 '12 14:03 zz85