Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    FieldFalloff Class

    Namespace: Stride.Particles.Updaters.FieldShapes
    Assembly: Stride.Particles.dll
    System.Object → FieldFalloff
    Derived from FieldFalloff:

    [DataContract("FieldFalloff")]
    [Display("Falloff", null)]
    public class FieldFalloff
    Name Description
    Properties
    FalloffEnd

    After this relative distance from the center, the force strength will be equal to [Strength outside]

    FalloffStart

    After this relative distance from the center, the force strength will start to change

    StrengthInside

    The strength of the force in the center of the bounding shape.

    StrengthOutside

    The strength of the force outside the bounding shape.

    Methods
    GetStrength(Single)

    Get interpolated strength based on relative distance from the center (lerp)

    | Improve this Doc View Source

    Properties


    FalloffEnd

    After this relative distance from the center, the force strength will be equal to [Strength outside]

    [DataMember(40)]
    [DataMemberRange(0, 1, 0.01, 0.1, 3)]
    [Display("Falloff end", null)]
    public float FalloffEnd { get; set; }
    Property Value
    Type Description
    System.Single

    FalloffStart

    After this relative distance from the center, the force strength will start to change

    [DataMember(20)]
    [DataMemberRange(0, 1, 0.01, 0.1, 3)]
    [Display("Falloff start", null)]
    public float FalloffStart { get; set; }
    Property Value
    Type Description
    System.Single

    StrengthInside

    The strength of the force in the center of the bounding shape.

    [DataMember(10)]
    [DataMemberRange(0, 1, 0.01, 0.1, 3)]
    [Display("Strength inside", null)]
    public float StrengthInside { get; set; }
    Property Value
    Type Description
    System.Single

    StrengthOutside

    The strength of the force outside the bounding shape.

    [DataMember(30)]
    [DataMemberRange(0, 1, 0.01, 0.1, 3)]
    [Display("Strength outside", null)]
    public float StrengthOutside { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Methods


    GetStrength(Single)

    Get interpolated strength based on relative distance from the center (lerp)

    public float GetStrength(float inDistance)
    Parameters
    Type Name Description
    System.Single inDistance
    Returns
    Type Description
    System.Single

    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