MCPcopy Create free account
hub / github.com/doldecomp/mkdd / calc

Method calc

libs/JSystem/JParticle/JPAKeyBlock.cpp:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15f32 JPAKeyBlock::calc(f32 currentFrame)
16{
17 if (mDataStart->_0B != '\0')
18 {
19 int lastKeyFrameIndex = (int)mKeyFrameData[(mDataStart->mKeyFrameCount - 1) * 4] + 1;
20 int currentFrameRatio = ((int)currentFrame / lastKeyFrameIndex);
21 currentFrame = currentFrame - (currentFrameRatio * lastKeyFrameIndex);
22 }
23
24 return JPACalcKeyAnmValue(currentFrame, mDataStart->mKeyFrameCount, mKeyFrameData);
25}

Callers 1

createParticleMethod · 0.45

Calls 1

JPACalcKeyAnmValueFunction · 0.85

Tested by

no test coverage detected