ReferenceScripting APIMotionMathslerp
MotionMaths.lerp
methodBetween a and b, t of the way.
| Name | lerp |
|---|---|
| Kind | method of MotionMaths |
| Called as | maths.lerp(…) |
| As a node | Lerp (logic graph) |
| Since | 0.4 |
Syntax
lerp( a: number, b: number, t: number): numberParameters
| Name | Type | Description |
|---|---|---|
a | number | From |
b | number | To |
t | number | 0 to 1 |
Returns
number: the value.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.