Hi,
I have a skeletal figure for animation. I have it set in the t-pose and I am quite confused about something. When I apply a rotation on the Y axis of 90 degrees, the left arm seems rotate inwards, while the right arm seems to go backwards.
I am completely unsure as to what might cause this kind of an issue and would appreciate any insight into what might be causing this and potential areas I could look into for checking.
auto offsetMatrix = Mat4::Translate(vec3(offset_from_parent.x, offset_from_parent.y, offset_from_parent.z));
auto rotation = Mat4::RotateY(90.0f); // returns y rotation matrix with rotation in radians
auto global = Mat::Identity();
// Apply rotation only to the left and right arm
if(joint->jointName == "LeftArm" || joint->jointName == "RightArm")
{
global = parentMatrix * offsetMatrix * rotation;
}