Click or drag to resize
DigitalRuneParticleSystemAddParticles Method (Int32, Object)
Creates a number of new particles from the specified emitter.

Namespace: DigitalRune.Particles
Assembly: DigitalRune.Particles (in DigitalRune.Particles.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public int AddParticles(
	int numberOfNewParticles,
	Object emitter
)

Parameters

numberOfNewParticles
Type: SystemInt32
The number of particles to create.
emitter
Type: SystemObject
Optional: The emitter that triggered the particle creation. This can be an effector, another object, or .

Return Value

Type: Int32
The number of actually created particles. This number will be less than numberOfNewParticles if the total number of particles in the particle system would exceed MaxNumberOfParticles.
Remarks

The "NormalizedAge" of new particles is set to 0. The particle system will automatically call InitializeParticles(Int32, Int32, Object) of all effectors to initialize other particle parameters.

See Also