ParticleSystemNumberOfLivingParticles Property |
Namespace: DigitalRune.Particles
NumberOfLivingParticles counts the number of particles where the "NormalizedAge" parameter is less than 1. This number does not include the living particles of the child particle systems (see Children).
Usually, NumberOfActiveParticles is equal to NumberOfLivingParticles particles because all particles have the same maximal "Lifetime". Only if a custom particle effector randomly kills particles (by setting the particle parameter "NormalizedAge" to a value equal to or greater than 1) or if "Lifetime" is a varying particle parameter, then NumberOfLivingParticles can be less than NumberOfActiveParticles; that means that some particles are active but have already died.