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

Method prepare

libs/JSystem/JParticle/JPAFieldBlock.cpp:44–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44void JPAFieldGravity::prepare(JPAEmitterWorkData *workData, JPAFieldBlock *block)
45{
46 if (block->checkStatus(2)) {
47 _04.scale(block->getMag(), block->getDir());
48 } else {
49 PSMTXMultVecSR(workData->mRotationMtx, (Vec*)&block->getDir(), (Vec*)&_04);
50 _04.scale(block->getMag());
51 }
52}
53
54void JPAFieldGravity::calc(JPAEmitterWorkData *workData, JPAFieldBlock *block, JPABaseParticle *particle) { calcAffect(block, particle); }
55

Callers 2

doRunningMethod · 0.45
calcMethod · 0.45

Calls 9

getMagMethod · 0.80
getDirMethod · 0.80
getVal1Method · 0.80
crossMethod · 0.80
checkStatusMethod · 0.45
scaleMethod · 0.45
normalizeMethod · 0.45
subMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected