Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    InitialDirectionSeed Class

    Namespace: Stride.Particles.Initializers
    Assembly: Stride.Particles.dll

    Initializer which sets the initial velocity for particles based on RandomSeed information

    System.Object → ParticleTransform → ParticleModule → ParticleInitializer → InitialDirectionSeed
    Derived from InitialDirectionSeed:

    [DataContract("InitialDirectionSeed")]
    [Display("Direction", null)]
    public class InitialDirectionSeed : ParticleInitializer
    Name Description
    Constructors
    InitialDirectionSeed()
    Properties
    DebugDraw

    Should this Particle Module's bounds be displayed as a debug draw

    DirectionMax

    Upper direction value

    DirectionMin

    Lower direction value

    SeedOffset

    The seed offset used to match or separate random values

    Methods
    Initialize(ParticlePool, Int32, Int32, Int32)
    TryGetDebugDrawShape(out DebugDrawShape, out Vector3, out Quaternion, out Vector3)
    | Improve this Doc View Source

    Constructors


    InitialDirectionSeed()

    public InitialDirectionSeed()
    | Improve this Doc View Source

    Properties


    DebugDraw

    Should this Particle Module's bounds be displayed as a debug draw

    [DataMember(-1)]
    public bool DebugDraw { get; set; }
    Property Value
    Type Description
    System.Boolean

    DirectionMax

    Upper direction value

    [DataMember(40)]
    [Display("Direction max", null)]
    public Vector3 DirectionMax { get; set; }
    Property Value
    Type Description
    Vector3

    DirectionMin

    Lower direction value

    [DataMember(30)]
    [Display("Direction min", null)]
    public Vector3 DirectionMin { get; set; }
    Property Value
    Type Description
    Vector3

    SeedOffset

    The seed offset used to match or separate random values

    [DataMember(8)]
    [Display("Random Seed", null)]
    public uint SeedOffset { get; set; }
    Property Value
    Type Description
    System.UInt32
    | Improve this Doc View Source

    Methods


    Initialize(ParticlePool, Int32, Int32, Int32)

    public override void Initialize(ParticlePool pool, int startIdx, int endIdx, int maxCapacity)
    Parameters
    Type Name Description
    ParticlePool pool
    System.Int32 startIdx
    System.Int32 endIdx
    System.Int32 maxCapacity
    Overrides
    ParticleInitializer.Initialize(ParticlePool, Int32, Int32, Int32)

    TryGetDebugDrawShape(out DebugDrawShape, out Vector3, out Quaternion, out Vector3)

    public override bool TryGetDebugDrawShape(out DebugDrawShape debugDrawShape, out Vector3 translation, out Quaternion rotation, out Vector3 scale)
    Parameters
    Type Name Description
    DebugDrawShape debugDrawShape
    Vector3 translation
    Quaternion rotation
    Vector3 scale
    Returns
    Type Description
    System.Boolean
    Overrides
    ParticleModule.TryGetDebugDrawShape(out DebugDrawShape, out Vector3, out Quaternion, out Vector3)

    Inherited Members

    ParticleModule.Enabled
    ParticleModule.ResetSimulation()
    ParticleModule.RequiredFields
    ParticleModule.SetParentTRS(ParticleTransform, ParticleSystem)
    ParticleModule.InvalidateRelations()
    ParticleModule.PreUpdate()
    ParticleTransform.InheritPosition
    ParticleTransform.Position
    ParticleTransform.InheritRotation
    ParticleTransform.Rotation
    ParticleTransform.InheritScale
    ParticleTransform.Scale
    ParticleTransform.ScaleUniform
    ParticleTransform.DisplayParticlePosition
    ParticleTransform.DisplayParticleRotation
    ParticleTransform.DisplayParticleScale
    ParticleTransform.DisplayParticleScaleUniform
    ParticleTransform.WorldPosition
    ParticleTransform.WorldRotation
    ParticleTransform.WorldScale
    ParticleTransform.SetParentTransform(ParticleTransform)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation