Class FieldFalloff
- Namespace
 - Stride.Particles.Updaters.FieldShapes
 
- Assembly
 - Stride.Particles.dll
 
[DataContract("FieldFalloff")]
[Display("Falloff", null)]
public class FieldFalloff
  - Inheritance
 - 
      objectFieldFalloff
 
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
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
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
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
Methods
GetStrength(float)
Get interpolated strength based on relative distance from the center (lerp)
public float GetStrength(float inDistance)
  Parameters
inDistancefloat