ProtoFlux:ValueConstantLerp: Difference between revisions

From Resonite Wiki
m ProbablePrime moved page Constant Lerp Value (ProtoFlux) to ProtoFlux:Constant Lerp Value: Creating protoflux Namespace
just a bit more clarity
 
(7 intermediate revisions by 5 users not shown)
Line 5: Line 5:
[
[
{"Name":"Input", "Type":"Dummy"},
{"Name":"Input", "Type":"Dummy"},
{"Name": "Speed", "Type": "Dummy"}
{"Name": "Speed", "Type": "float"}
]
]
|Outputs=
|Outputs=
Line 12: Line 12:
]
]
|}}
|}}
The '''Constant Lerp''' node takes in an input value and the speed at which it lerps it linearly towards, then returns the lerped value over time.
{{Note|If you need the lerp to have a smooth ending, 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. The output value will change by this amount per second.
== Outputs ==
=== * (Pseudo-Generic) ===
Returns the value currently being lerped.


[[Category:ProtoFlux:Math:Interpolation]]
[[Category:ProtoFlux:Math:Interpolation]]
[[Category:ContinuouslyChanging nodes]]

Latest revision as of 21:18, 23 September 2025

Constant Lerp
Input
*
Speed
Interpolation

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

If you need the lerp to have a smooth ending, 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. The output value will change by this amount per second.

Outputs

* (Pseudo-Generic)

Returns the value currently being lerped.