I’m experiencing this issue on models which use the animation rigging system. In fact, after removing it from a character, there seems to be vestigial hurdles stopping onanimatorik from working. onanimatorik only works on the character I’ve never applied the animation rigging system to.
@Recluse I checked it on my side and OnAnimatorIK and SetLookAtPosition works fine. Maybe there is something in your setup that triggers a bug. Can you submit a bug report?
changed OnAnimatorIK() to OnAnimatorIK(int layerIndex)
this didn’t seem to have any effect.
Then I swapped the order so LookAtPosition is set before LookAtWeight in the IK callback.
Suddenly, the script worked again.
Weirdly, swapping the order of the position and weight back again didn’t make any difference, so I am left without any real clue.
I attach the script if you want to take a look.
Oh, and just to confirm - IK pass was enabled at all times in the Animator.
I checked your script and don’t see anything wrong with it. For readability it’s better to use proper code tags . The order in which you Do I understand correctly that it’s working fine now?