Hi,
I'm searching a way to mirror an hierarchy stored in local space.
Each transformation is relative to its parent and is stored as translation, rotation using quaternion and scaling.
The goal is to mirror a skeleton but it's the same thing as mirror an hierarchy of node.
The goal is to transform the translation and rotation to have the mirror correctly.
The mirror table is generated to know what transformation has to be swapped.
What doesn't work is to invert sign of translation and quaternion like that :
translation.x = -translation.x;
quaternion.x = -quaternion.x;
quaternion.w = -quaternion.w;
The scaling has to stay intact because the hierarchy can be blended with another after the mirror process.
Thanks for the help