In particle systems, do there exist easing/smoothing options between addSizeGradient keyframes?

Press spacebar to emit the particle behavior: Babylon.js Playground

Is there any way to have easing behavior for size gradients in particle emitters? A good RL example of this is that, during explosions, the gas expands out until it is sufficiently arrested by the atmosphere. This behavior is nonlinear, with clouds lingering for a while, retaining a slowly expanding size, after they’ve initially rapidly expanded themselves into the environment.

If not, are there any plans in the future for doing this?

Currently it’s only a simple lerp between gradients: Babylon.js/particleSystem.ts at master · BabylonJS/Babylon.js (github.com), but we can certainly add them in the future.

2 Likes