MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / getActiveAnimationProgress

Method getActiveAnimationProgress

src/components/AnimHandler.cpp:504–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

502}
503
504float AnimHandler::getActiveAnimationProgress()
505{
506 Animations::Animation* anim = getActiveAnimationPtr();
507 if (!anim || !anim->m_Data.isValid())
508 return 0.0f;
509
510 return m_AnimationFrame / (float)anim->m_FrameCount;
511}
512
513Math::float3 AnimHandler::getRootNodeVelocityAvg()
514{

Callers 3

playerUpdateMethod · 0.80
npcUpdateMethod · 0.80
getFootFrontMethod · 0.80

Calls 1

isValidMethod · 0.45

Tested by

no test coverage detected