Hi guys,
I need of a simple explosion effect, like a simple emitter with one single shot of some particles.
I'm trying do it creating emitter and delete one second after, but the particles disappear abruptely.
Anyone know how do it?
Thanks,
Simple explosion with particles
Re: Simple explosion with particles
Stop emitting first and THEN delete some seconds later.
Re: Simple explosion with particles
Nice. But... How stop emitter? Sorry by the question but i not found a method called stop or anyhng like it.
Re: Simple explosion with particles
I suspect (not tried) you can call setEmitter(0) on the IParticleSystemSceneNode to stop it emitting.
Or maybe better - call setMaxParticlesPerSecond for the emitter and reduce that number (to 0 or a low value).
Or maybe better - call setMaxParticlesPerSecond for the emitter and reduce that number (to 0 or a low value).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Simple explosion with particles
Thank you! Works perfect.
Code: Select all
this->explosionParticleEmitter->setMaxParticlesPerSecond(0); // Stop emission