zz85 / sparks.js

a lightweight 3d particle engine in javascript, compatible with THREE.js and TWEEN.js
435 stars 47 forks source link

SphereCapZone #15

Open renegademaster88 opened 12 years ago

renegademaster88 commented 12 years ago

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/

zz85 commented 12 years ago

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