![]() |
Lysa
0.0
Lysa 3D Engine
|
A tween that interpolates a number and drives a Lua callback each tick.
Inherits from: Tween
Lua full name: lysa.LuaTween
Public Member Functions | |
| LuaTween | create (from: number, to: number, duration: number, type: TransitionType, on_update: fun(value:number), on_complete: fun())static |
| Creates a LuaTween, registers it with the engine, and returns it. More... | |
| nil | update (delta: number) |
| Advances the tween by delta seconds; called automatically by the engine each physics tick. More... | |
|
static |
Creates a LuaTween, registers it with the engine, and returns it.
| from | number |
| to | number |
| duration | number |
| type | TransitionType |
| on_update | fun(value:number) |
| on_complete | fun() |
|
Advances the tween by delta seconds; called automatically by the engine each physics tick.
| delta | number |