Keep particle system after emitter is gone?

I’m using particle systems to make “smoke trails” behind rockets. So the back end of the rocket is the emitter. When the rocket hits something, it is immediately destroyed via dispose(). But this causes the particles to instantly disappear. Is there a way to keep the existing particles around until they naturally fade out?

I tried not actually calling rocket.dispose() and just doing rocket.setEnabled(false), but that has the same effect.

My best guess at the moment is to maybe just make the rocket invisible, then set a timer to wait for the particles to finish (how do I know when that is?) and then actually dispose() the rocket.

In order to let particles to finish you may use particleSystem.maxLifeTime for minimal timer time.

1 Like