Skip to content

Lerp

92

The Lerp (Linear Interpolation) node smoothly transitions between two values (A and B) based on a percentage value called alpha (0.0 to 1.0). It is the foundation for creating fluid animations and gradual changes.

When to use this node: * Smooth Transitions: Gradually fading a light from 0% to 100% brightness by connecting a FOR loop or Timeline to the alpha pin. * Proportional Movement: Moving a slider or motor to a specific point between its "Home" and "Max" positions. * Atmospheric Fades: Slowly shifting the volume of ambient music as players move between different stages of a puzzle.

Technical Note: When alpha is 0, the output is exactly A. When alpha is 1, the output is exactly B. Any value in between (like 0.5) results in a proportional mix of the two.

Connectors in

  • A [type: float]
  • B [type: float]
  • alpha [type: float]

Connectors out

  • value [type: variant]

Node properties

  • A [type: float]
  • alpha [type: float]
  • B [type: float]