Hi All,
I am trying to get skeletons to flip correctly however after having worked out an editor workflow (http://esotericsoftware.com/forum/Flipping-skeleton-workflow-7162) I'm OK with I'm struggling to understand how runtime manages skeleton.getRootBone().setScaleX(-1).
The animations of the flipped skeletons (X scale -1) work perfectly in the editor but get deformed at runtime. All I do at runtime is:
skeleton.getRootBone().setScaleX(ANIMATION_SCALE * skeleton.getRootBone().getScaleX());
skeleton.getRootBone().setScaleY(ANIMATION_SCALE * skeleton.getRootBone().getScaleY());
skeleton.updateWorldTransform();
where ANIMATION_SCALE is a constant to downsize skeletons in the application.
What am I missing?
Thanks