collapse_all
expand_all

collapse_allexpand_alldropdowndropdownHovercopycodecopycodeHighlight

collapse_all Collapse AllExpand All     dropdown Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

[TCheckBoxFormControlObj]C#

[TCheckBoxFormControlObj]Visual Basic

[TCheckBoxFormControlObj]

Visual C++
DPSF API Documentation
DPSF
<
(Of
<
(<'Particle, Vertex>)>)>..::..AddParticles Method (Int32, ParticleEmitter, Single)
gradient

Adds the specified number of new Particles to the particle system, linearly interpolating (Lerp) the Emitter's Position/Orientation to be between its Previous Position/Orientation and current Position/Orientation when adding new particles.

Returns how many Particles were able to be added to the particle system.

These new Particles are initialized using the particle system's Particle Initialization Function.

Namespace: DPSF

Assembly: DPSF (in DPSF.dll) Version: 2.5.0.0

collapse_allSyntax

C#

public int AddParticles(

 int numberOfParticlesToAdd,

 ParticleEmitter emitterToLerp,

 float elapsedTimeInSeconds

)

Visual Basic

Public Function AddParticles (

 numberOfParticlesToAdd As Integer,

 emitterToLerp As ParticleEmitter,

 elapsedTimeInSeconds As Single

As Integer

Visual C++

public:

int AddParticles(

 int numberOfParticlesToAdd,

 ParticleEmitteremitterToLerp,

 float elapsedTimeInSeconds

)

Parameters

numberOfParticlesToAdd

Type: System..::..Int32

How many Particles to Add to the particle system.

emitterToLerp

Type: DPSF..::..ParticleEmitter

The Emitter to copy the position and orientation data from.

elapsedTimeInSeconds

Type: System..::..Single

The elapsed time in seconds since the last frame so we know how much to update each Lerp'd particle.

Return Value

Type: Int32

Returns how many Particles were able to be added to the particle system.

collapse_allSee Also

DPSF<(Of <(<'Particle, Vertex>)>)> Class

DPSF<(Of <(<'Particle, Vertex>)>)> Members

AddParticles Overload

DPSF Namespace

footer

Send comments on this topic to
Dan@DansKingdom.com