A tiny teeny tween function for SparkAR
by chrisError
Doesn't add any new functionality to SparkAR, instead it just wraps the Animation, TimeDriver and Samplers into (I think) an easier to read format, so if you are used to TweenMax / TweenLite or DoTween in Unity etc then the syntax below should be pretty readable to you.
Tween(startValue, endValue, duration, loopCount, mirror, easeType, completeCallback)
e.g.
sceneObject.transform.x = Tween(-100, 100, 5, 10000, true, Ease.BOUNCE_OUT, OnAnimationCompleteCallback);
ToDo
create some real docs
look at adding support for sequences
moar testing
add infinite loops for loop count