• RuntimesUnreal
  • Animation gets stuck between poses after BeginPlay only

Related Discussions
...

Versy

I had written a wall of text to help you debug the issue more effectively, but then I took a closer look at your screenshots and spotted the actual cause.

The code I shared in my previous message was meant to replace only the Step variable calculation in your original custom code. The rest should have remained unchanged. That's on me—I should've pasted the entire function for clarity.

You're calculating Step, but you're not using it. You need to replace the usage of DeltaTime with Step.
Specifically, update these two lines:

state->update(DeltaTime); → state->update(Step);
...
skeleton->update(physicsTimeScale * DeltaTime); → skeleton->update(physicsTimeScale * Step);

This explains why Misaki and I weren’t able to reproduce your issue. Hopefully, this finally resolves it!

    Davide

    Oh my god... it works! Not your fault, to be honest, it originally said Step in my code but I must have missed copying it over to the new plugin. As you can see in my post above where I originally noted the slowdown, but then that begs the question, if that was there when I noted the slowdown... then... how did the slowdown initially happen? It's possible the screenshot I took was from my old plugin, not the new one, so I didn't actually have Step back. No idea. 😅

    Anyway, thank you so much for your patience on this. This has been mind-bending for me, haha. As I said before I'm not a programmer, and I apologize, if I was I probably would have been able to spot this error a lot sooner. I appreciate both of your guys' help, true heroes!

    Thank you again, all's good now, no more animation mix problem and also improved disableInterpolation calculation! 🙌

    Have a great weekend!!

      Versy

      I'm glad it's finally working!
      If you need any further assistance, feel free to open a new thread. 🙂