{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/5062","labels_url":"https://api.github.com/repos/mrdoob/three.js/issues/5062/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/three.js/issues/5062/comments","events_url":"https://api.github.com/repos/mrdoob/three.js/issues/5062/events","html_url":"https://github.com/mrdoob/three.js/issues/5062","id":37781325,"number":5062,"title":"Reverse animation, feature request","user":{"login":"EskelCz","id":1198558,"avatar_url":"https://avatars.githubusercontent.com/u/1198558?v=3","gravatar_id":"","url":"https://api.github.com/users/EskelCz","html_url":"https://github.com/EskelCz","followers_url":"https://api.github.com/users/EskelCz/followers","following_url":"https://api.github.com/users/EskelCz/following{/other_user}","gists_url":"https://api.github.com/users/EskelCz/gists{/gist_id}","starred_url":"https://api.github.com/users/EskelCz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EskelCz/subscriptions","organizations_url":"https://api.github.com/users/EskelCz/orgs","repos_url":"https://api.github.com/users/EskelCz/repos","events_url":"https://api.github.com/users/EskelCz/events{/privacy}","received_events_url":"https://api.github.com/users/EskelCz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mrdoob/three.js/labels/Enhancement","name":"Enhancement","color":"deffdb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-07-14T12:19:29Z","updated_at":"2015-09-14T00:34:14Z","closed_at":"2014-08-11T17:17:26Z","body":"Hi. I've tried to ask at stack overflow how to do this myself, but got no response at all.\r\nhttp://stackoverflow.com/questions/24282035/is-it-possible-to-play-skin-animation-in-reverse-three-js\r\n\r\nWould i be possible to make animation playable forward and backwards? To be able to reverse it would be useful for things like making a character switch from walking forward to backward, smooth transition from door opening to closing etc. I could use two animations but that means more animation data and juggling between the two with stop/play frames etc.\r\n\r\nOverall I think this would be a useful feature for every animation to have."},"comment":{"url":"https://api.github.com/repos/mrdoob/three.js/issues/comments/139931022","html_url":"https://github.com/mrdoob/three.js/issues/5062#issuecomment-139931022","issue_url":"https://api.github.com/repos/mrdoob/three.js/issues/5062","id":139931022,"user":{"login":"Milun","id":5328426,"avatar_url":"https://avatars.githubusercontent.com/u/5328426?v=3","gravatar_id":"","url":"https://api.github.com/users/Milun","html_url":"https://github.com/Milun","followers_url":"https://api.github.com/users/Milun/followers","following_url":"https://api.github.com/users/Milun/following{/other_user}","gists_url":"https://api.github.com/users/Milun/gists{/gist_id}","starred_url":"https://api.github.com/users/Milun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Milun/subscriptions","organizations_url":"https://api.github.com/users/Milun/orgs","repos_url":"https://api.github.com/users/Milun/repos","events_url":"https://api.github.com/users/Milun/events{/privacy}","received_events_url":"https://api.github.com/users/Milun/received_events","type":"User","site_admin":false},"created_at":"2015-09-14T00:34:14Z","updated_at":"2015-09-14T00:34:14Z","body":"I found a fix for `animation.loop = false`. You need to `play()` the animation first, then set the timeScale. If you want to play it from its current position, just do:\r\n\r\n`INTERSECTED.animation.play(INTERSECTED.animation.currentTime);`\r\n`INTERSECTED.animation.timeScale = -animSpeed;`"}}