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

Method getRootNodeVelocityAvg

src/components/AnimHandler.cpp:513–523  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

511}
512
513Math::float3 AnimHandler::getRootNodeVelocityAvg()
514{
515 Math::float3 avg(0, 0, 0);
516
517 for (unsigned i = 0; i < NUM_VELOCITY_AVERAGE_STEPS; i++)
518 {
519 avg += m_AnimVelocityRingBuff[i];
520 }
521
522 return avg / (float)NUM_VELOCITY_AVERAGE_STEPS;
523}
524
525void AnimHandler::triggerEvents(int frameLast, int frameNow)
526{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected