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. Dismiss Notice

Resolved Animation Rigging Package not working properly

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

  1. Lifee00

    Lifee00

    Joined:
    Apr 13, 2021
    Posts:
    66
    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:
    638
    LateUpdate is where you want to apply any animation override. See also OnIKAnimator(){} (iir).
     
  3. Lifee00

    Lifee00

    Joined:
    Apr 13, 2021
    Posts:
    66
    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:
    638
    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:
    66
    I think the auto fill option for bones made it work, if anyone wonders.
     
  6. Homicide

    Homicide

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