Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    InitialVelocityParent Class

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

    The InitialVelocityParent is an initializer which sets the particle's velocity based on a followed (parent) particle's velocity

    System.Object → ParticleTransform → ParticleModule → ParticleInitializer → ParticleChildInitializer → InitialVelocityParent
    Derived from InitialVelocityParent:

    [DataContract("InitialVelocityParent")]
    [Display("Velocity (parent)", null)]
    public class InitialVelocityParent : ParticleChildInitializer
    Name Description
    Constructors
    InitialVelocityParent()

    Default constructor which also registers the fields required by this updater

    Properties
    ParentVelocityFactor

    The factor (percentage) for parent's velocity inheritance

    SeedOffset

    The seed offset used to match or separate random values

    VelocityMax

    The right upper front corner of the box

    VelocityMin

    The left bottom back corner of the box

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

    Constructors


    InitialVelocityParent()

    Default constructor which also registers the fields required by this updater

    public InitialVelocityParent()
    | Improve this Doc View Source

    Properties


    ParentVelocityFactor

    The factor (percentage) for parent's velocity inheritance

    [DataMember(25)]
    [Display("Velocity factor", null)]
    public float ParentVelocityFactor { get; set; }
    Property Value
    Type Description
    System.Single

    SeedOffset

    The seed offset used to match or separate random values

    [DataMember(20)]
    [Display("Random Seed", null)]
    public uint SeedOffset { get; set; }
    Property Value
    Type Description
    System.UInt32

    VelocityMax

    The right upper front corner of the box

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

    VelocityMin

    The left bottom back corner of the box

    [DataMember(30)]
    [Display("Velocity min", null)]
    public Vector3 VelocityMin { get; set; }
    Property Value
    Type Description
    Vector3
    | 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

    ParticleChildInitializer.Parent
    ParticleChildInitializer.ParentName
    ParticleChildInitializer.ParentSeedOffset
    ParticleChildInitializer.ParentControlFlag
    ParticleChildInitializer.GetSpawnControlField()
    ParticleChildInitializer.SetParentTRS(ParticleTransform, ParticleSystem)
    ParticleChildInitializer.InvalidateRelations()
    ParticleChildInitializer.RemoveControlGroup()
    ParticleChildInitializer.AddControlGroup()
    ParticleModule.Enabled
    ParticleModule.ResetSimulation()
    ParticleModule.TryGetDebugDrawShape(DebugDrawShape, Vector3, Quaternion, Vector3)
    ParticleModule.RequiredFields
    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