LERP: Difference between revisions
(Updated the page. TODO: update the explanation.) |
No edit summary Tags: Mobile edit Mobile web edit Advanced mobile edit |
||
| (One intermediate revision by the same user not shown) | |||
| Line 8: | Line 8: | ||
|output1={{Port|r}} | |output1={{Port|r}} | ||
}} | }} | ||
Linear Interpolation (LERP) returns a rotation between From and To at a point of linear scale specified by the Amount. | Linear Interpolation (LERP) returns a [[rotation]] between From and To at a point of linear scale specified by the Amount. | ||
<code>Rotation = From + (To - From) × Amount</code> | <code>Rotation = From + (To - From) × Amount</code> | ||
See also: [[Linear Interpolation]] | See also: [[Linear Interpolation]] | ||
[[Category:Blocks]] | [[Category:Blocks]] | ||
Latest revision as of 00:33, 23 August 2025
LERP
| Type | Script block |
| Collider | None |
| Folder | Math |
| Ports | |
|---|---|
| Inputs | From To Amount |
| Outputs | Rotation |
Linear Interpolation (LERP) returns a rotation between From and To at a point of linear scale specified by the Amount.
Rotation = From + (To - From) × Amount
See also: Linear Interpolation