【BUG】3.8.1 cc.tween easing设置在 onUpdate 中不起作用

  • Creator 版本: 3.8.1

  • 目标平台:微信小游戏, 不过是在PC端支行时发现的. 还没有在微信上运行过

tween({x: 0})
            .to(duration, {x: 1}, {
                easing: 'cubicOut',
                onUpdate(t, v) {
                    // 这里的v, 是线性的, 并没有应用 easing 函数

                }
            })
            .start()

你看代码就知道了,这里的v 就是原始值,
自己翻代码把 引擎的处理copy 过来吧 :grin:

嗯, 这个缓动函数到是很容易实现,
只是对于api的设计来说. 如果在配置了easing的话. onUpdate中也应该使用应用过 easing函数之后的值.
不然会让开发者迷惑~ update 应该表示的每帧回调. 现在明显是不符的.