Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    InitialRotationSeed Class

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

    The InitialRotationSeed is an initializer which sets the particle's rotation around the Z axis in clip space (camera-facing)

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

    [DataContract("InitialRotationSeed")]
    [Display("Rotation", null)]
    public class InitialRotationSeed : ParticleInitializer
    Name Description
    Constructors
    InitialRotationSeed()

    Default constructor which also registers the fields required by this updater

    Properties
    AngularRotation

    Angular rotation in degrees, positive value means clockwise

    SeedOffset

    The seed offset used to match or separate random values

    Methods
    Initialize(ParticlePool, Int32, Int32, Int32)
    | Improve this Doc View Source

    Constructors


    InitialRotationSeed()

    Default constructor which also registers the fields required by this updater

    public InitialRotationSeed()
    | Improve this Doc View Source

    Properties


    AngularRotation

    Angular rotation in degrees, positive value means clockwise

    [DataMember(30)]
    [Display("Angle (degrees) min", null)]
    public Vector2 AngularRotation { get; set; }
    Property Value
    Type Description
    Vector2

    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)

    Inherited Members

    ParticleModule.Enabled
    ParticleModule.ResetSimulation()
    ParticleModule.TryGetDebugDrawShape(DebugDrawShape, Vector3, Quaternion, Vector3)
    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