Class SphereShapeEmitter
Box particle emitter.
Inherited Members
Namespace: Evergine.Framework.Particles.Shape
Assembly: Evergine.Framework.dll
Syntax
public class SphereShapeEmitter : BaseShapeEmitter<ShapeSphereDescription>
Constructors
SphereShapeEmitter(ShapeSphereDescription)
Initializes a new instance of the SphereShapeEmitter class.
Declaration
public SphereShapeEmitter(ShapeSphereDescription description)
Parameters
Type | Name | Description |
---|---|---|
ShapeSphereDescription | description | The description of the shape. |
Properties
FromCenter
Gets or sets a value indicating whether particles are emitted from 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 |
FromSurface
Gets or sets a value indicating whether particles are emitted from the surface.
Declaration
[RenderProperty(CustomPropertyName = "From Surface", Tooltip = "The particle will be spawn on the sphere surface or inside it.")]
public bool FromSurface { get; set; }
Property Value
Type | Description |
---|---|
bool |
Radius
Gets or sets the size of the sphere emitter.
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 initial position. |
Vector3 | initDirection | The initial direction. |