Hi,
I recently got my hands dirty with some IK and decided to try some of The examples Autodesk seems to show off e.g. Kicking a ball in FIFA.
The apporoach
My plan was simply to solve the IK at the frame the player balances before the kick (Animation triggered) then slowly blend it with the kicking animation ease in and out.
The IK was solved with the player at the tpose to avoid crazy issue that arise when you solve from an unknown pose.
This bone data was saved to an animation clip and added to the player’s animation object.
The problem
No matter how hard i try i cant get it to play with the main animation. I did try playing the ik created clip on its own and it worked but when i try blending it doesnt workadditive or regular it did not work. Mixing transform is out of the qestion cos its a singl frame.
For additive i used two keys key 0 had a value of 0 and time of zero. Counfused about the time i should give key 1 since the timing should be irrelevant so i gave it 1.
You may have a look at how it is done in the Locomotion System. It does exactly the same, but uses it to align the feets to the ground.
There is certainly a lot of code in the Locomotion System, but maybe you find something useful.