This commit is contained in:
2026-05-06 17:52:45 -07:00
parent 9fc3f35125
commit 1463c23334
402 changed files with 3758 additions and 0 deletions

2
ease/README.md Normal file
View File

@ -0,0 +1,2 @@
- https://api.leenkx3d.org/iron/system/Ease.html
- https://api.leenkx3d.org/iron/system/Tween.html

View File

@ -0,0 +1,33 @@
package lnx;
import iron.system.Tween;
#if lnx_debug
import leenkx.trait.internal.DebugDraw;
#end
class TweenTest extends iron.Trait {
@prop var ease : Int = 0;
public function new() {
super();
notifyOnInit(() -> {
#if lnx_debug
//DebugDraw.notifyOnRender( draw -> draw.bounds( object.transform) );
#end
doTween(10);
});
}
function doTween( v : Float ) {
Tween.to({
target: object.transform.loc,
props: { z: v },
delay: 0.5,
duration: 2.0,
ease: ease,
tick: object.transform.buildMatrix,
done: () -> doTween(-v)
});
}
}

BIN
ease/ease.blend Normal file

Binary file not shown.