Class BoxShapeEmitter
Box particle emitter.
Inherited Members
Namespace: Evergine.Framework.Particles.Shape
Assembly: Evergine.Framework.dll
Syntax
public class BoxShapeEmitter : BaseShapeEmitter<ShapeBoxDescription>
Constructors
BoxShapeEmitter(ShapeBoxDescription)
Initializes a new instance of the BoxShapeEmitter class.
Declaration
public BoxShapeEmitter(ShapeBoxDescription description)
Parameters
Type | Name | Description |
---|---|---|
ShapeBoxDescription | description | The shape description. |
Properties
FromCenter
Gets or sets a value indicating whether particles are emitted with the sphere center.
Declaration
[RenderProperty(CustomPropertyName = "From Center", Tooltip = "The particle direction will be the opposite vector to the center. Otherwise they will have the Y vector velocity.")]
public bool FromCenter { get; set; }
Property Value
Type | Description |
---|---|
bool |
Size
Gets or sets the box emitter size.
Declaration
public Vector3 Size { get; set; }
Property Value
Type | Description |
---|---|
Vector3 |
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 init position. |
Vector3 | initDirection | The init direction. |