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

Method onFrameUpdate

src/logic/visuals/ModelVisual.cpp:589–597  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

587}
588
589void ModelVisual::onFrameUpdate(float dt)
590{
591 size_t newHash = getAnimationHandler().getAnimationStateHash();
592 if (newHash != m_LastKnownAnimationState)
593 {
594 updateAttachmentTransforms();
595 m_LastKnownAnimationState = newHash;
596 }
597}
598
599void ModelVisual::setBodyState(const ModelVisual::BodyState& state)
600{

Callers 2

onUpdateMethod · 0.45
onUpdateMethod · 0.45

Calls 1

getAnimationStateHashMethod · 0.80

Tested by

no test coverage detected