Hey,
Our programmers are struggling, because we have different behaviour in Unity than in Spine regarding IKs. I'm attaching a message from our team. I hope you can help us.
We have a problem with flipping IK bones on Unity’s side, when a parent’s bone scale is flipped either in X or Y axis. Previously we were working on Unity version 2020.1.7 with Spine version 4.0 and everything worked fine. This error started occurring after updating Unity to 2021.3.22 and Spine to 4.1.
It is most noticeable on IK’s that are controlling the character's pupil positions.
Scenario 1 (working): No flip on any bone is present - everything works correctly on both Spine and Unity’s side.
Scenario 2 (error): Characters are set up sitting with a negative scale on the Y axis in the head bone. It is done so that character’s head is positioned correctly:
(no negative scale)
(negative scale)
This change causes pupil IKs to flip (but only on Unity’s side).
Do you know what could be the reason for this or where should we look for the solutions?
Thank you!