(3 intermediate revisions by the same user not shown)
Line 1:
Line 1:
{{Infobox Component
{{Infobox Component
|Image=ConstantLerpValue`1Component.png
|Image=ConstantLerpValue`1Component.png
|Name=Constant Lerp Value`1
|Name=Constant Lerp Value
}}
}}
{{stub}}
The '''ConstantLerpValue''' component will make the <code>Value</code> reach <code>TargetValue</code>, making <code>Speed</code> progress per second. it can also be known as a linear lerp.
== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|TargetValue|'''T'''|TypeAdv0=true|
|TargetValue|'''T'''|TypeAdv0=true| The value to stop at.
|Speed|Float|
|Speed|Float| The amount to change <code>Value</code> by per second to reach <code>TargetValue</code>
|WriteBack|Bool|
|WriteBack|Bool| Whether changes to <code>Value</code> will be written to <code>TargetValue</code>. See [[Drives#Write Backs|write backs]].