Struct DensityByTemperatureSettings
Settings that define how the temperature affects the density of the plast. If TemperatureScalesDensity is true, the plast density will be multiplied by the value from DensityByTemperatureFactorCurve evaluated at the cell temperature. This allows to simulate the effect of hot plast being less dense and more fluid, while cold plast is more dense and less fluid.
Assembly: fwt.hexterrains.dll
Syntax
[Serializable]
public struct DensityByTemperatureSettings
Fields
DensityByTemperatureFactorCurve
Declaration
public ExponentialCurve DensityByTemperatureFactorCurve
Field Value
DensityScale
The density calculated by temperature will be multiplied by this value. This allows to adjust the overall effect of temperature on density. For example, if DensityScale is 0.5, the density will be reduced by half at the same temperature compared to a DensityScale of 1.0. If DensityScale is 2.0, the density will be doubled at the same temperature compared to a DensityScale of 1.0.
Declaration
[Tooltip("The density calculated by temperature will be multiplied by this value. This allows to adjust the overall effect of temperature on density. For example, if DensityScale is 0.5, the density will be reduced by half at the same temperature compared to a DensityScale of 1.0. If DensityScale is 2.0, the density will be doubled at the same temperature compared to a DensityScale of 1.0.")]
public float DensityScale
Field Value
TemperatureScalesDensity
Declaration
public bool TemperatureScalesDensity
Field Value
Properties
Default
Declaration
public static DensityByTemperatureSettings Default { get; }
Property Value
Extension Methods