Lerp Angle

Pure
LerpAngle

Linearly interpolates between two angles, taking the shortest path across the 360/0 boundary.

Type: Pure (no side effects)
Category: Fortuna|Math & Numeric
Keywords: math & numeric

Inputs

NameTypeDefaultDescription
AfloatA parameter
BfloatB parameter
Alphafloat 0-1Alpha parameter

Outputs

NameTypeDescription
ReturnValuefloatReturnValue output

Example Use Cases

Example 1

Smooth turret rotation toward target.

Example 2

Compass needle animation.