Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to play skin animation in reverse? [Three.js]

Tags:

three.js

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?

like image 641
Eskel Avatar asked Jun 18 '14 09:06

Eskel


1 Answers

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.

like image 174
Adam Avatar answered Sep 20 '22 17:09

Adam