Click or drag to resize
DigitalRuneStartVelocityBiasEffector Class
Adds a bias velocity to the start velocities of particles.
Inheritance Hierarchy
SystemObject
  DigitalRune.ParticlesParticleEffector
    DigitalRune.Particles.EffectorsStartVelocityBiasEffector

Namespace: DigitalRune.Particles.Effectors
Assembly: DigitalRune.Particles (in DigitalRune.Particles.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public class StartVelocityBiasEffector : ParticleEffector

The StartVelocityBiasEffector type exposes the following members.

Constructors
  NameDescription
Public methodStartVelocityBiasEffector
Initializes a new instance of the StartVelocityBiasEffector class.
Top
Methods
  NameDescription
Public methodBeginUpdate
Called when the particle system begins its update.
(Inherited from ParticleEffector.)
Public methodClone
Creates a new ParticleEffector that is a clone of the current instance.
(Inherited from ParticleEffector.)
Protected methodCloneCore
Makes the instance a clone of the specified ParticleEffector.
(Overrides ParticleEffectorCloneCore(ParticleEffector).)
Protected methodCreateInstanceCore
When implemented in a derived class, creates a new instance of the ParticleEffector derived class.
(Overrides ParticleEffectorCreateInstanceCore.)
Public methodEndUpdate
Called when the particle system finishes its update.
(Inherited from ParticleEffector.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInitialize
Initializes this particle effector.
(Inherited from ParticleEffector.)
Public methodInitializeParticles
Initializes new particles.
(Inherited from ParticleEffector.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnBeginUpdate
Called when BeginUpdate(TimeSpan) was called.
(Inherited from ParticleEffector.)
Protected methodOnEndUpdate
Called when BeginUpdate(TimeSpan) was called.
(Inherited from ParticleEffector.)
Protected methodOnInitialize (Overrides ParticleEffectorOnInitialize.)
Protected methodOnInitializeParticles (Overrides ParticleEffectorOnInitializeParticles(Int32, Int32, Object).)
Protected methodOnRequeryParameters (Overrides ParticleEffectorOnRequeryParameters.)
Protected methodOnUninitialize (Overrides ParticleEffectorOnUninitialize.)
Protected methodOnUpdateParticles
Called when UpdateParticles(TimeSpan, Int32, Int32) was called.
(Inherited from ParticleEffector.)
Public methodRequeryParameters
Requeries the particle parameters.
(Inherited from ParticleEffector.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodUninitialize
Uninitializes this particle effector.
(Inherited from ParticleEffector.)
Public methodUpdateParticles
Updates particles.
(Inherited from ParticleEffector.)
Top
Properties
  NameDescription
Public propertyBiasVelocityParameter
Gets or sets the name of the parameter that defines the bias velocity vector. (A varying or uniform parameter of type Vector3F.)
Public propertyDirectionParameter
Gets or sets the name of the parameter that defines the movement direction. (A varying or uniform parameter of type Vector3F.)
Public propertyEnabled
Gets or sets a value indicating whether this ParticleEffector is enabled.
(Inherited from ParticleEffector.)
Public propertyName
Gets the name of this particle effector.
(Inherited from ParticleEffector.)
Public propertyParticleSystem
Gets or sets the particle system.
(Inherited from ParticleEffector.)
Public propertySpeedParameter
Gets or sets the name of the parameter that defines the movement speed. (A varying or uniform parameter of type Single.)
Public propertyStrength
Gets or sets a factor that is used to scale the bias velocity before adding it to the particle velocity.
Top
Remarks

This effector changes the initial particle speed and direction by adding a bias velocity.

For example: When a particle emitter is moving, the emitter's velocity can be set as the bias velocity to influence the particles when they are spawned. The Strength property is a factor, usually in the range [0, 1], that defines how strong the influence of the emitter velocity is.

Used particle parameters:

Particle ParameterDescription
DirectionParameter A normalized Vector3F parameter that defines the movement direction (direction of the linear velocity vector). This parameter is modified by applying the bias velocity. Per default, the parameter "Direction" is used.
SpeedParameter A Single parameter that defines the movement speed (magnitude of the linear velocity vector). This parameter is modified by applying the acceleration. Per default, the parameter "LinearSpeed" is used.
BiasVelocityParameter A Vector3F parameter that defines the bias velocity. Per default, the parameter "EmitterVelocity" is used.

See Also