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
}}
}}
<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
{{stub}}
<!--T:4-->
<!--T:4-->
== Examples ==
== Examples ==
{{stub}}
<!--T:5-->
<!--T:6-->
== Related Issues ==
== See Also ==
[https://github.com/Neos-Metaverse/NeosPublic/issues/1341 <s>#1341 - SmoothValue component doesn't support color</s>]
* [[Component:Tween]]
[https://github.com/Neos-Metaverse/NeosPublic/issues/1640 <s>#1640 - SmoothValue<floatQ> behaves strangely when first driving a rotation</s>]
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.