Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

[?] Animation glitch when imported into Unity

Discussion in 'Animation' started by bukanipul, Apr 22, 2020.

  1. bukanipul

    bukanipul

    Joined:
    Apr 22, 2020
    Posts:
    2
    Hi all,

    There's a glitch in my Maya animated character and weapon prop when imported into Unity.

    The character's hands hold a long weapon. The weapon is constrained to one hand, and the other hand constrained to the weapon. Maya FPS was set to 30 fps.

    In Maya, the animation looks fine.
    Then I bake all the export bones and use Maya's Game Exporter to export it into a binary FBX 2018 file.
    But when imported into Unity, the weapon is detached from the hands, especially when the character swings this weapon quickly, like, in just 1-2 frames. After this action, the weapon is attached to the hands again.

    I also experimented with other animations, and noticed that such a problem occurs when:
    - prop constrained to the character's hand
    - export bones of legs constrained to IK joints
    - the character moves so fast, in just 1-2 frames

    I searched this forum for similar case and found this thread:
    https://forum.unity.com/threads/unity-maya-animations-are-different-once-imported.180156/

    So I have tried:
    1. Switching off "Resample Curves" and "Anim Compression" settings in Unity
    2. Converting my Maya animation, from 30 fps into 60 fps, fixing the glitch, and then re-exporting the baked export bones into Unity

    But so far those don't solve the problem. The constrained objects are still noticably detached in the inbetween Unity frames.

    Could anyone please give me a suggestion?

    Thanks in advance~
     
  2. bukanipul

    bukanipul

    Joined:
    Apr 22, 2020
    Posts:
    2
    Does anyone know the solution?