Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Resolved Animation Rigging Package not working properly

Discussion in 'Animation' started by Lifee00, Apr 10, 2023.

  1. Lifee00

    Lifee00

    Joined:
    Apr 13, 2021
    Posts:
    88
    Ok, I am using two bone IK constraint. It works somewhat, but doesn't really update in-game. I have a weapon, which is a child of a Camera. The camera will move and rotate the weapon, but the bones do not update at all. However, If i play animation of the weapon, the bones will update accordingly. I also tried using FixedUpdate for the camera, since IKs use FixedUpdate, right? Well that didn't work.
     
  2. Homicide

    Homicide

    Joined:
    Oct 11, 2012
    Posts:
    664
    LateUpdate is where you want to apply any animation override. See also OnIKAnimator(){} (iir).
     
  3. Lifee00

    Lifee00

    Joined:
    Apr 13, 2021
    Posts:
    88
    Using lateupdate to move camera or even weapon only also didn't work. Constraints don't update. Do you mean I need to write script to update the IK constraint manually each time or something like that?
     
  4. Homicide

    Homicide

    Joined:
    Oct 11, 2012
    Posts:
    664
    NO, not at all. I use animation rigging (specfically two bone ik constraints) without any issues, But my point was, fixed update is not where you want to attempt applying animation overrides.

    Really, this is the kind of thing a short vid, or a screen share would show much more clearer than a lightly informative post .

    If you want someone to take a look at it, hit me up on discord, i might be able to help. Cheers.

    JD#1539
     
  5. Lifee00

    Lifee00

    Joined:
    Apr 13, 2021
    Posts:
    88
    I think the auto fill option for bones made it work, if anyone wonders.
     
  6. Homicide

    Homicide

    Joined:
    Oct 11, 2012
    Posts:
    664
    It will help do it correctly, if you did it wrong. :D