issue #3990: setTotalParticles works as expected. _emissionRate has to be updated in setTotalParticles.