Class EdgeShapeEmitter
Box particle emitter.
Inherited Members
Namespace: Evergine.Framework.Particles.Shape
Assembly: Evergine.Framework.dll
Syntax
public class EdgeShapeEmitter : BaseShapeEmitter<ShapeEdgeDescription>
Constructors
EdgeShapeEmitter(ShapeEdgeDescription)
Initializes a new instance of the EdgeShapeEmitter class.
Declaration
public EdgeShapeEmitter(ShapeEdgeDescription description)
Parameters
Type | Name | Description |
---|---|---|
ShapeEdgeDescription | description | A description of the shape. |
Properties
FromCenter
Gets or sets a value indicating whether particles are emitted from the edge center.
Declaration
[RenderProperty(CustomPropertyName = "From Center", Tooltip = "The particle direction will be the opposite vector to the edge center. Otherwise they will have the Y vector velocity.")]
public bool FromCenter { get; set; }
Property Value
Type | Description |
---|---|
bool |
Length
Gets or sets the edge length.
Declaration
public float Length { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
EmitParticleCPU(CPUEmitterSimulator, ref uint, ref Vector3, out Vector3)
CPU particle emission.
Declaration
protected override void EmitParticleCPU(CPUEmitterSimulator cpuEmitter, ref uint seed, ref Vector3 position, out Vector3 initDirection)
Parameters
Type | Name | Description |
---|---|---|
CPUEmitterSimulator | cpuEmitter | The CPU emitter simulator. |
uint | seed | The seed. |
Vector3 | position | The initial position. |
Vector3 | initDirection | The initial direction. |