增加一个 tween 缓动,与 creator 2D 中的 cc.tween 功能类似
let position = new math.Vec3(); tweenUtil(position) .to(2, new math.Vec3(0, 2, 0), { easing: 'Cubic-InOut' }) .start();
缓动目标
注:请勿对 node 矩阵相关数据直接进行缓动,例如传入 this.node.position
Generated using TypeDoc
增加一个 tween 缓动,与 creator 2D 中的 cc.tween 功能类似
let position = new math.Vec3(); tweenUtil(position) .to(2, new math.Vec3(0, 2, 0), { easing: 'Cubic-InOut' }) .start();