Component:SmoothValue: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page SmoothValue (Component) to Component:SmoothValue: Creating component Namespace
Automated: update Fields, Categories
 
(One intermediate revision by one other user not shown)
Line 16: Line 16:
== 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.
|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
}}
}}


Line 30: Line 30:
<!--T:5-->
<!--T:5-->
== Related Issues ==
== Related Issues ==
[https://github.com/Neos-Metaverse/NeosPublic/issues/1341 <s>#1341 - SmoothValue component doesn't support color</s>]
[https://github.com/Neos-Metaverse/NeosPublic/issues/1640 <s>#1640 - SmoothValue<floatQ> behaves strangely when first driving a rotation</s>]
[https://github.com/Neos-Metaverse/NeosPublic/issues/1664 <s>#1664 - BooleanValueDriver<floatQ> breaks Smooth Transform (rotation) / SmoothValue<floatQ></s>]
[https://github.com/Neos-Metaverse/NeosPublic/issues/1711 <s>#1711 - SmoothValue<T> Component Should have a CurvePreset field</s>]


<!--T:6-->
<!--T:6-->
Line 44: Line 37:
[[Category:Generics{{#translation:}}]]
[[Category:Generics{{#translation:}}]]
[[Category:Components{{#translation:}}|Smooth Value`1]]
[[Category:Components{{#translation:}}|Smooth Value`1]]
[[Category:Generic Components{{#translation:}}|Smooth Value`1]]
[[Category:Components:Transform:Drivers{{#translation:}}|Smooth Value`1]]
[[Category:Components:Transform:Drivers{{#translation:}}|Smooth Value`1]]

Latest revision as of 21:26, 3 March 2024


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
Smooth Value`1 component as seen in the Scene Inspector


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.

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
TargetValue T The value that is being interpolated towards
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.
Value field drive of T The value that is being driven

Usage

Examples

Related Issues

Related Components