Skip to content

Is reverse playback in model animations supported? #255

Answered by ninjz
ninjz asked this question in Q&A
Discussion options

You must be logged in to vote

After diving a bit deeper into the ValueAnimator code, it works by just calling .reverse() as the call starts playing the animation in reverse and .start() does not need to be called after as it will result in playing the animation in the forward direction again. Thanks for your help @ThomasGorisse

val animation = modelNode.renderableInstance.animate(repeat)
animation.reverse()

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@ninjz
Comment options

@ThomasGorisse
Comment options

@ninjz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ninjz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #250 on December 24, 2021 08:12.