(2 intermediate revisions by the same user not shown)
Line 3:
Line 3:
|Name=Constant Lerp Value
|Name=Constant Lerp Value
}}
}}
The '''ConstantLerpValue''' component will make the <code>Value</code> reach <code>TargetValue</code>, making <code>Speed</code> progress per second.
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| The value to stop at.
|TargetValue|'''T'''|TypeAdv0=true| The value to stop at.
|Speed|Float| The amount to change <code>Value</code> by per second to reach <code>TargetValue</code>
|Speed|Float| The amount to change <code>Value</code> by per second to reach <code>TargetValue</code>
|WriteBack|Bool| Whether changes to <code>Value</code> will be written to <code>TargetValue</code> also
|WriteBack|Bool| Whether changes to <code>Value</code> will be written to <code>TargetValue</code>. See [[Drives#Write Backs|write backs]].
|Value|{{RootFieldType|FieldDrive`1|T}}|TypeAdv3=true| The value to constantly progress towards <code>TargetValue</code>
|Value|{{RootFieldType|FieldDrive`1|T}}|TypeAdv3=true| The value to constantly progress towards <code>TargetValue</code>
}}
}}
Latest revision as of 02:08, 2 July 2025
Component image
Constant Lerp Value component as seen in the Scene Inspector
The ConstantLerpValue component will make the Value reach TargetValue, making Speed progress per second. it can also be known as a linear lerp.