Search Results for

    Show / Hide Table of Contents

    Class SphereShapeEmitter

    Box particle emitter.

    Inheritance
    object
    BaseShapeEmitter
    BaseShapeEmitter<ShapeSphereDescription>
    SphereShapeEmitter
    Inherited Members
    BaseShapeEmitter<ShapeSphereDescription>.Description
    BaseShapeEmitter<ShapeSphereDescription>.ShapeType
    BaseShapeEmitter<ShapeSphereDescription>.randomizeDirectionMode
    BaseShapeEmitter<ShapeSphereDescription>.RandomizeDirection
    BaseShapeEmitter<ShapeSphereDescription>.VelocityOffset
    BaseShapeEmitter<ShapeSphereDescription>.BindShape(ComputeEmitterSimulator)
    BaseShapeEmitter<ShapeSphereDescription>.UnbindShape(ComputeEmitterSimulator)
    BaseShapeEmitter<ShapeSphereDescription>.RefreshShapeParameters(CommandBuffer, EmitterSimulator)
    BaseShapeEmitter.PropertyChanged
    BaseShapeEmitter.NeedsEntitySource
    BaseShapeEmitter.CreateFromDescription(ShapeDescription)
    BaseShapeEmitter.RaisePropertyChanged(string)
    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.

    Overrides
    BaseShapeEmitter<ShapeSphereDescription>.EmitParticleCPU(CPUEmitterSimulator, ref uint, ref Vector3, out Vector3)

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In this article
    Back to top
    Generated by DocFX