The '''SmoothValue''' component smoothly interpolates a given value towards a target value at a set speed.
<!--T:1-->
== Introduction ==
The SmoothValue component smoothly interpolates a given value towards a target value at a set speed.
To do this it drives the value it is interpolating.
To do this it drives the value it is interpolating.
Line 16:
Line 12:
== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|TargetValue|Float| The value that is being interpolated towards
|TargetValue|'''T'''|TypeAdv0=true| The value that is being interpolated towards
|Speed|Float| The speed at which it is interpolated
|Speed|Float| The speed at which it is interpolated
|WriteBack|Bool| If WriteBack is enabled, writing to the driven value will also set TargetValue. If not, the driven value cannot be written to.
|WriteBack|Bool| If WriteBack is enabled, writing to the driven value will also set TargetValue. If not, the driven value cannot be written to. See [[Drives#Write Backs|write backs]].
|Value|IField`1|TypeString3=IField<float>| The value that is being driven
|Value|{{RootFieldType|FieldDrive`1|T}}|TypeAdv3=true| The value that is being driven
The SmoothValue component smoothly interpolates a given value towards a target value at a set speed.
To do this it drives the value it is interpolating.