Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    UpdaterSpeedToDirection Class

    Namespace: Stride.Particles.Modules
    Assembly: Stride.Particles.dll

    The UpdaterSpeedToDirection calculates the particle's direction (not normalized) based on its delta position

    System.Object → ParticleTransform → ParticleModule → ParticleUpdater → UpdaterSpeedToDirection
    Derived from UpdaterSpeedToDirection:

    [DataContract("UpdaterSpeedToDirection")]
    [Display("Direction from Speed", null)]
    public class UpdaterSpeedToDirection : ParticleUpdater
    Name Description
    Constructors
    UpdaterSpeedToDirection()
    Properties
    IsPostUpdater

    All updaters are called exactly once during each ParticleEmitter's update. Most updaters are called before spawning the new particles for the frame, but post updaters are called after that.

    Methods
    Update(Single, ParticlePool)
    | Improve this Doc View Source

    Constructors


    UpdaterSpeedToDirection()

    public UpdaterSpeedToDirection()
    | Improve this Doc View Source

    Properties


    IsPostUpdater

    All updaters are called exactly once during each ParticleEmitter's update. Most updaters are called before spawning the new particles for the frame, but post updaters are called after that.

    public override bool IsPostUpdater { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    ParticleUpdater.IsPostUpdater
    | Improve this Doc View Source

    Methods


    Update(Single, ParticlePool)

    public override void Update(float dt, ParticlePool pool)
    Parameters
    Type Name Description
    System.Single dt
    ParticlePool pool
    Overrides
    ParticleUpdater.Update(Single, ParticlePool)

    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