zz85 / sparks.js

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

no removeAction/removeInitializer ? #8

Closed jeromeetienne closed 12 years ago

jeromeetienne commented 12 years ago

So it is quite hard to remove stuff put in the stack.

zz85 commented 12 years ago

feature added. https://github.com/zz85/sparks.js/commit/2d28a191587de75477ea23f6a3c8c4ac5b62fd1b

sample:

            lf = new SPARKS.Lifetime(5,10)
            sparksEmitter.addInitializer(lf);
            sparksEmitter.removeInitializer(lf);

            a = new SPARKS.Accelerate( 40, -100, 50  )
            sparksEmitter.addAction( a );
            sparksEmitter.removeAction( a );
jeromeetienne commented 12 years ago

thanks :)