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

Method AnimHandler

src/components/AnimHandler.cpp:17–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15using namespace ZenLoad;
16
17AnimHandler::AnimHandler()
18{
19 m_ActiveAnimation.invalidate();
20 m_AnimRootVelocity = Math::float3(0, 0, 0);
21 m_AnimRootPosition = Math::float3(0, 0, 0);
22 m_LastProcessedFrame = static_cast<size_t>(-1);
23 m_AnimationStateHash = 0;
24 m_pWorld = nullptr;
25 m_AnimationFrame = 0.0f;
26
27 for (unsigned i = 0; i < NUM_VELOCITY_AVERAGE_STEPS; i++)
28 {
29 m_AnimVelocityRingBuff[i] = Math::float3(0, 0, 0);
30 }
31}
32
33/**
34 * @brief Sets the mesh-lib this operates on. Does a copy inside, so the given object can be deleted.

Callers

nothing calls this directly

Calls 1

invalidateMethod · 0.45

Tested by

no test coverage detected