EMotionFX

Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
pappeste
2021-06-17 17:11:23 -07:00
committed by Esteban Papp
parent b67882a82f
commit 150f37cb6b
15 changed files with 65 additions and 65 deletions
@@ -260,7 +260,7 @@ namespace EMotionFX
GetEMotionFX().Update(0.0f);
EXPECT_EQ(Transform::CreateIdentity(), GetOutputTransform());
static_cast<MCore::AttributeFloat*>(m_animGraphInstance->GetParameterValue(m_animGraph->FindParameterIndex(m_parameter).GetValue()))->SetValue(1.0f);
static_cast<MCore::AttributeFloat*>(m_animGraphInstance->GetParameterValue(static_cast<uint32>(m_animGraph->FindParameterIndex(m_parameter).GetValue())))->SetValue(1.0f);
GetEMotionFX().Update(0.0f);
EXPECT_EQ(Transform::CreateIdentity() * AZ::Transform::CreateTranslation(AZ::Vector3(10.0f, 0.0f, 0.0f)), GetOutputTransform());
@@ -313,7 +313,7 @@ namespace EMotionFX
// Changing this one parameter value should change it through all 3
// layers of reference nodes, down to the referenced Transform node
static_cast<MCore::AttributeFloat*>(m_animGraphInstance->GetParameterValue(m_animGraph->FindParameterIndex(m_topLevelParameter).GetValue()))->SetValue(1.0f);
static_cast<MCore::AttributeFloat*>(m_animGraphInstance->GetParameterValue(static_cast<uint32>(m_animGraph->FindParameterIndex(m_topLevelParameter).GetValue())))->SetValue(1.0f);
GetEMotionFX().Update(0.0f);
EXPECT_EQ(Transform::CreateIdentity() * AZ::Transform::CreateTranslation(AZ::Vector3(10.0f, 0.0f, 0.0f)), GetOutputTransform());