Home Website Youtube GitHub

IK FK matching zeros out foot roll

Hello,

My animator has requested that when using IK/FK matching that the foot_L0_roll_ctl values be preserved instead of reset. Using the foot roll to position the IK controls so they match the FK position.

This is because they’ve used the foot roll to get some animation, switched to FK done some animation and switched back to IK. But because the foot_L0_roll_ctl is zeroed out they can’t use the foot roll to help with animation that is planted to the floor.

So I am wondering if there is a way to instead of zeroing out the foot_L0_roll_ctl and putting translate and rotate values onto the leg_L0_ik_ctl and foot_L0_fk0_ctl. It instead works out the value needed on the food roll and then positions the ankle accordingly?

Any help with this would be really appreciated!

Many thanks
Philip

I don’t know, but I think that would be amazing. I wonder how it could be done.

  • Someone smart could maybe work out an algorithm that estimated foot roll first. That could likely be very hacky and indeterminate. Or maybe it’s kind of easy, just looking at the relative value of the foot vs. toe, relative to the ground.
  • When switching to FK, store any existing foot roll as an animation curve on the FK, even if it isn’t “doing” anything. Use that as a first pass when switching back to IK. Could drift out of sync if animators are making a lot of changes in FK.

Have your animators ever used a tool where it did preserve the foot roll?