• Editor
  • Flipping X has weird IK interaction

Related Discussions
...

I apologize if this is a question you get asked a lot, but after googling and browsing the forums for a while, I can't seem to find an answer on this.

I'm currently testing Spine's features with the trial, and I'm following your tutorials on youtube. I've tested this with spineboy-pro and raptor-pro, and in both cases the IK acts weird when I set the X scale of the entire model to -1. Is there a way to fix this? I figured out you can use the shear tool to correct the mesh, but I don't feel like that's Ideal when animating.

Once again, I'm sorry if you're sick of this question.

Any insight is greatly appreciated, thanks.

This can happen when transform inheritance is disabled. Check out the front-foot-tip and rear-foot-tip bones in the spineboy-pro project. They have inherit rotation and reflection disabled:

HTTPS desteği olmadığı için görsel kaldırıldı. | Yine de Göster


When you scale the root bone to scaleX -1 to flip the skeleton, those two bones don't inherit the reflection (they don't flip over, they continue pointing the same direction).

At runtime you can use Skeleton scaleX and scaleY to flip the skeleton, including bones that have transform inheritance disabled. In the editor I'm afraid there isn't such a feature yet, so if you need to flip your skeletons during animations, you would need to either avoid disabling transform inheritance or fix it up by manually flipping the bones that didn't flip, eg by setting their scaleX to -1.

Disabling transform inheritance can be quite useful and is a feature not commonly seen in other software. That is likely because it creates more cases for how transforms are applied, which is already pretty tricky and has to work in all scenarios, no matter how unlikely.

Aha! Thank you, this is exactly what I was looking for. Sorry if this covered in the tutorials, when I find something that I don't know how to do, I can't focus on anything else until I figure it out.

You are awesome by the way, I really appreciate all the help. I was on the fence about getting Spine because of certain issues I've been having with it, but most of those issues seem to be because of my unfamiliarity with it, and you have greatly helped with that. Thanks.

No worries, it's good to understand why things are happening rather than just moving on.

I'm happy we were able to help! 8) :beer: