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

How to disable animation transitions #636

Open
LearnMC opened this issue Sep 29, 2024 · 3 comments
Open

How to disable animation transitions #636

LearnMC opened this issue Sep 29, 2024 · 3 comments

Comments

@LearnMC
Copy link

LearnMC commented Sep 29, 2024

Hello, we like Geckolib very much, it's very convenient and easy to use, but we've recently had some problems with animated transitions. Even if the transitionLength is set to 0, there is still an animated transition, it is short, and make the animation twitch. We've adjusted the articulation between animations in Blockbench. Is there a way to turn off animation transitions completely?

@Tslat
Copy link
Collaborator

Tslat commented Sep 29, 2024

Might need an example of what you're talking about

@LearnMC
Copy link
Author

LearnMC commented Sep 29, 2024

可能需要一个例子来说明你正在谈论的内容

I wrote the code below:
RawAnimation.begin().then("model.opening", Animation.LoopType.PLAY_ONCE).thenLoop("model.opened")
@OverRide
public void registerControllers(AnimatableManager.ControllerRegistrar controllers) {
controllers.add((new AnimationController<>(this,jud())).transitionLength(0));
}
I have two animations, which are: “model.opening” and "model.opened". The "model.opened" animation is a rotation that plays in a loop, but the "model.opened" animation to "model.opened" automatically transitions, rotating a little earlier and then starting from 0 to spin, so that there is a visual twitch.

@WI8614ice
Copy link

There will be a short zoom twitch between the two animations

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

No branches or pull requests

3 participants