ProtoFlux:Value Constant Lerp: Difference between revisions

From Resonite Wiki
add constant lerp value
 
Added a suggestion note.
 
(6 intermediate revisions by 4 users not shown)
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Name":"Input", "Type":""},
{"Name":"Input", "Type":"Dummy"},
{"Name": "Speed", "Type": ""},
{"Name": "Speed", "Type": "float"}
]
]
|Outputs=
|Outputs=
[
[
{"Name":"*", "Type":""}
{"Name":"*", "Type":"Dummy"}
]
]
|}}
|}}
The '''Constant Lerp''' node takes in an input value and the speed of which it lerps linearly towards, then returns the value over time.
{{Note|If you need the lerp to be smooth, use the [[ProtoFlux:Value Smooth Lerp|Value Smooth Lerp]] node instead.|suggestion}}
== Inputs ==
=== Input (Pseudo-Generic) ===
The value we want to lerp towards.
=== Speed ([[Type:float|float]]) ===
How fast the lerp should be.
== Outputs ==
=== * (Pseudo-Generic) ===
Returns the value currently being lerped.


[[Category:ProtoFlux:Math:Interpolation]]
[[Category:ProtoFlux:Math:Interpolation]]

Latest revision as of 13:32, 2 July 2024

Constant Lerp
Input
*
Speed
Interpolation

The Constant Lerp node takes in an input value and the speed of which it lerps linearly towards, then returns the value over time.

If you need the lerp to be smooth, use the Value Smooth Lerp node instead.

Inputs

Input (Pseudo-Generic)

The value we want to lerp towards.

Speed (float)

How fast the lerp should be.

Outputs

* (Pseudo-Generic)

Returns the value currently being lerped.