• EditorBugs
  • Exporting animation with Physics constraint's keyframes breaks the contraint

Problem statement

I was exporting a video of an animation containing physics contraints and I noticed the physics looked off compared to what I had in the editor. So I tried a few things with a sample project and the problem seems real.

So, using the celestial-circus-pro project, this is the video export of the swing animation alone as it comes out of the box:

I then tried to set all the physics contraints to Mix 0 in Setup, and then reapplied the 100 Mix at the beginning of the animation, which in theory should have given the same exact result. This is the export:

Editor information

4.2.36

    Related Discussions
    ...

    Fabiano Thank you so much for reporting this problem, I was able to reproduce it. It seems to work fine if the mix value in the setup pose is non-zero (e.g. 0.001), but if it is set to 0, it seems to stop working even if the mix value is changed during the animation.

    I have created an issue ticket to fix this: EsotericSoftware/spine-editor836
    This problem was also reproducible in Spine 4.2.00, so this seems to be a bug that has been overlooked for a long time. Thank you for bringing this important issue to our attention.

    8 месяцев спустя

    Hello!
    Sorry to resurrect this topic, but is there any news about this bug? We experience it with several animations currently. The workaround is helpful, but it would be perfect if we could just enter a Mix value of '0' and make it work 🙂
    Thanks in advance.

    • Изменено

    Fabiano! This is a family friendly forum. You're showing a bit much leg! 😉

    Sorry this took so long to get to. We've fixed it in 4.3.30-beta but it's worth doing a 4.2 release for this, so it'll be in 4.2.42.

    Hi Nate, thanks for your reactivity!
    I updated Spine, and while the issue is fixed for GIF export, I still have it when I export in JSON and use it in Unity.
    Maybe I did something wrong, but could you confirm to me it's supposed to work in Unity as well?
    Thanks a lot in advance.

    This issue is about animate mode and image/video export not applying physics correctly when a physics constraint has 0 mix in setup mode. It was a problem in the Spine editor.

    When exporting to JSON and using the Spine Runtimes in Unity, the editor isn't involved and it's impossible to encounter the same problem. It'd be best to create a new discussion describing:

    1. What you are doing
    2. What you expected
    3. What actually happened

    Hi Nate, thanks for your answer.
    For me, the issue was very similar because the same workaround (setting a Constraint mix of 0.01 instead of 0) was working. But I understand that it's probably on the Unity side.

    So as you recommanded, I made a post with more details, and a video to show the issue : https://esotericsoftware.com/forum/d/28706-setting-an-ik-constraint-mix-to-0-is-not-working-as-intended-in-unity