GPUParticleSystem updating position for new particles

Can you change the out.z value for BABYLON.CustomParticleEmitter and particlePositionGenerator in GPUParticleSystem without resetting the particle system when the activeParticleCount is increased?

Here I increase the activeParticleCount by 250ms intervals, and the particles are added but the I would like to change the out for the new particles foreach interval :slight_smile:

Any suggestions ?

Unfortunately, it is not possible to do it with the GPU particle system because the initial positions are generated at start and reused for new particles when other particles are dying.

That’s because everything is running on the GPU, and your customEmitter.particlePositionGenerator javascript function can’t be called on the GPU when new particles must be created.

2 Likes