Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Bug Possible bug? Animation Rigging Foot IK still working if weight is 0

Discussion in 'Animation' started by carcasanchez, Sep 17, 2020.

  1. carcasanchez

    carcasanchez

    Joined:
    Jul 15, 2018
    Posts:
    177
    Hello,
    I am experimenting with the new Animation Rigging, and I have been happy so far with it.
    However, I have found a curious thing.
    I have this rig, and I want to ONLY have the Hips IK working.
    upload_2020-9-17_12-25-45.png
    Works cool:
    https://gyazo.com/3f53e324c9b44d4c5fc66ec1669fa66e

    HOWEVER. The foot IK I want to use is the one in the animator controller. Why? Because I don't want the foot animation be completely overriden by the Rigging Foot IK solvers.
    upload_2020-9-17_12-25-33.png

    What I should do is set the Weight of the IK Solvers now to 0, right?
    Code (CSharp):
    1. hStream.SetHintWeightPosition(ikHint, 0.0f);
    However, the rig behaves as if it still has a weight of 1!
    To fully deactivate the solvers, and preserve the foot animations while still having the IK working, I have to turn off the solver game object itself.
    https://gyazo.com/bbc1d1ce7c61b34d1ac5c197824e4d41

    Is this a known issue? Is the Animation Rigging not supposed to work with the animator controller foot IK? The rest of the limbs and targets work fine when changing the weights, so I suppose it is a particular issue.
     

    Attached Files: