FieldFalloff Class
Namespace: Stride.Particles.Updaters.FieldShapesAssembly: Stride.Particles.dll
[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) |
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 |
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 |