Hi there,
I have a skeleton with various transform constraints that change the Y scale of the model. They're linked to several skin constraints (Height+1, Height+3, etc) that I enable in Unity to create random generated characters with different heights and body types.
Then, I also have IK2 (two-bone) constraint for Arm_x and Forearm_x bones. Their target is well "up" the hierarchy under Root and NOT "under" bone with the scale constraints, so the hand always end up at the target coordinates of my choosing.
This is useful to "attach" a hand to something in-game, like a door knob, for example.
Now I'd like to have another IK2 constraint for the same arm bones, but this time with their target UNDER the scale constraints, so the animations that enable these IKs also respect the height (scale constraint) of the model.
This would be useful (I think) for all characters, regardless of their height, still be able to use a path with that IK. For example, moving their hands in an ample and complex circular movement (like casting a spell) and still look natural.
And if I were to try this with the previous IK, all of them would move their hands at the same absolute height, regardless of their relative height.
So, to solve this I went and created a duplicate of the previous IK2, but pointing them to a new target bone deep in the hierarchy.
It looks like this...:
Take notice both constraints are at zero mix in Setup mode. It's only on the actual animations that I set them to their effective value.
I tested it with the second use case and it worked fine. But when I look at the "hold door knob" animation it was completely messed up, with the arm disregarding the absolute target bone.
Then I switched the order of the constraints, and they also switched places in being wrong.
My guess is that it doesn't matter that both constraints start at zero mix in Setup mode. And they "fight" each other badly, as if both were activated at all times.
So... should I forget about having both IK2? Or there is a way of making them work at the same time?
If they can't exist simultaneously, I'll delete the relative one and just pose the arm bones, ofc, but it would be a shame not being able to use path contraints that also change height if needed.