Merge pull request #6660 from tjmgd/bug-righthand-bones-81

Right hand bones misplaced
This commit is contained in:
Chris Galvan
2022-01-12 13:45:23 -06:00
committed by GitHub
@@ -952,7 +952,15 @@ namespace MCommon
}
else
{
worldTM = AZ::Transform::CreateFromQuaternion(MCore::AzEulerAnglesToAzQuat(0.0f, 0.0f, MCore::Math::DegreesToRadians(180.0f)));
if (direction.GetX() > 0)
{
worldTM = AZ::Transform::CreateFromQuaternion(MCore::AzEulerAnglesToAzQuat(MCore::Math::DegreesToRadians(180.0f), 0.0f, MCore::Math::DegreesToRadians(180.0f)));
}
else
{
worldTM = AZ::Transform::CreateFromQuaternion(MCore::AzEulerAnglesToAzQuat(0.0f, 0.0f, 0.0f));
}
}
// set the cylinder to the given position