Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yoyo loop mode for animations #11785

Closed
BlakeOne opened this issue Jan 14, 2022 · 1 comment
Closed

Yoyo loop mode for animations #11785

BlakeOne opened this issue Jan 14, 2022 · 1 comment
Assignees
Milestone

Comments

@BlakeOne
Copy link
Contributor

Please add a new animation loop mode that reverses the direction of the animation when it reaches the end instead of restarting the animation from the beginning.

Ideally this yoyo/mirror looping would be as easy to use as the normal looping, by simply specifying a different constant for the loop mode: e.g. by simply passing Animation.ANIMATIONLOOPMODE_YOYO instead of _CYCLE.

Forum discussion: https://forum.babylonjs.com/t/yoyo-mirror-looping/26687/6

@deltakosh deltakosh self-assigned this Jan 14, 2022
@deltakosh deltakosh added this to the Future milestone Jan 14, 2022
@deltakosh deltakosh modified the milestones: Future, 6.0 Jan 20, 2022
@thomlucc thomlucc modified the milestones: 6.0, Future Jan 17, 2023
@thomlucc thomlucc modified the milestones: Future, 7.0 May 16, 2023
deltakosh added a commit that referenced this issue May 25, 2023
@deltakosh
Copy link
Contributor

PG to test: https://playground.babylonjs.com/#FFDIXK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants