Fix: Right hand bones misplaced

Signed-off-by: T.J. McGrath-Daly <tj.mcgrath.daly@huawei.com>
This commit is contained in:
Tobias Alexander Franke
2021-12-21 19:35:34 +08:00
committed by T.J. McGrath-Daly
parent ce709b99d0
commit e4880cf9a1
@@ -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