本文介绍了是否可以反向播放皮肤动画?[三.js]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将如何向后播放动画?
我试过给动画处理程序负增量,但这只是阻止它.从动画的 this.currentTime 中减去增量也不起作用.
有什么想法吗?
解决方案
自从 Three.jsr69 可以通过设置 animation 以相反的顺序播放动画.timeScale = -1
虽然仅当 animation.loop = true
时.
有关更多更新,请参阅反向动画,功能请求 #5062.>
How would I go about playing an animation backwards?
I've tried giving the animation handler negative delta but that just stops it. Subtracting the delta from this.currentTime of the animation doesn't work either.
Any ideas?
解决方案
Since Three.js r69 it's possible to play animations in reverse order by setting animation.timeScale = -1
though only when animation.loop = true
.
See Reverse animation, feature request #5062 for more updates.
这篇关于是否可以反向播放皮肤动画?[三.js]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!