Initializes a Vector3F particle parameter as a position vector and applies the transformation of the ParticleSystem's Pose.

Namespace: DigitalRune.Particles.Effectors
Assembly: DigitalRune.Particles (in DigitalRune.Particles.dll) Version: 1.1.0.0 (1.1.0.9492)

Syntax

C#
public class StartPositionEffector : ParticleEffector
Visual Basic
Public Class StartPositionEffector _
	Inherits ParticleEffector
Visual C++
public ref class StartPositionEffector : public ParticleEffector

Remarks

This effector initializes the start value of a specific particle parameter (see property Parameter) for new particles. The start value is chosen from a given Distribution. If Distribution is nullNothingnullptra null reference (Nothing in Visual Basic), DefaultValue is used as the start value for all particles.

This effector acts like a standard StartValueEffector<(Of <(<'T>)>)>, except: The vector created by the Distribution or the DefaultValue is treated as a position given in the local coordinate space of the particle system. That means, the position start value moves with the particle system. If the ReferenceFrame of the particle system is World, the start value of each particle is multiplied with the poses of the particle system (and its parent particle systems) to convert the position from local space to world space. If the ReferenceFrame of the particle system is Local, the pose of the particle system is ignored.

Cloning: When an instance is of this class is cloned, the clone references the same Distribution. The Distribution is not cloned.

Inheritance Hierarchy

System..::..Object
  DigitalRune.Particles..::..ParticleEffector
    DigitalRune.Particles.Effectors..::..StartPositionEffector

See Also