Hey mGear team!
I’ve found that any chain with an IK control flips when the first and last IK control hit a 180º difference from each othe. This gets exacerbated when the chain is not set up perfectly straight. In my case I have a ponytail which coils from the back of the head to the front of the body, and it breaks at only 50º on the end (chain_IK_variable_FK).
It seems very similar to the issue described in Neck IK Popping/Flipping - Support - mGear Framework Forum (mgear-framework.com)
I added some transform groups and constraints in a post-script to help the ponytail slide on the shoulder, but that causes the rotation of the head to also cause the flip when rotated the same amount.
One of our programmers said it looks like it was doing a lerp instead of a slerp between the matrices, but I don’t know enough about C++ or math to dig into the mgear_interpolateMatrix class. In the meantime, are there any good solutions for preventing these flips considering there is an intMatrix going to every FK control?