Class CircleShapeEmitter
Circle particle emitter.
Inherited Members
Namespace: Evergine.Framework.Particles.Shape
Assembly: Evergine.Framework.dll
Syntax
public class CircleShapeEmitter : BaseShapeEmitter<ShapeCircleDescription>
Constructors
CircleShapeEmitter(ShapeCircleDescription)
Initializes a new instance of the CircleShapeEmitter class.
Declaration
public CircleShapeEmitter(ShapeCircleDescription description)
Parameters
Type | Name | Description |
---|---|---|
ShapeCircleDescription | 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 |
FromCircumference
Gets or sets a value indicating whether particles are emitted from the surface.
Declaration
[RenderProperty(CustomPropertyName = "From Circumference", Tooltip = "All the particles are emitted in the circumference.")]
public bool FromCircumference { get; set; }
Property Value
Type | Description |
---|---|
bool |
Radius
Gets or sets the box emitter size.
Declaration
public float Radius { 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 init position. |
Vector3 | initDirection | The init direction. |