0

I am making an animation in react-three-fiber that plays 1 repetition and then resets correctly. However, when it is interrupted midway through, the default/resting/thumbnail keyframe changes to the place where the animation was interrupted. The animation still works, it's just where it resets to that's incorrect. Is there a way to reset this default keyframe to the correct one?

1 Answer 1

0

I've found a workaround, but a I hope somebody else has a better answer:

actions['key'].stop().play()
actions['key'].paused = true

Basically, if you play and then pause it immediately, the animation will be on the first frame

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.