Particles - how to make them "die" earlier?

Hello, I have an emitter that follow a path (it’s a baked animation), and when it reach the end of the path there’s something like an “explosion” effect.
https://playground.babylonjs.com/#IQPBS4#18
When the “explosion” effect happen I’d like to make all the particles “die” quickly (in other terms, I’d like all the particles fade-out during the explosion).
I gave a look to the particle “age” property, but I can’t understand how I could use it for this purpose (or maybe there’s a better way?)
Many thanks!

Simply calling particleSystem.stop() should be what you need for that

1 Like

You can try fading out the alpha of each particle in the same custom update function that creates the explosion at the end, like this for example. :slight_smile:

1 Like