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

Method initDisappear

src/Sato/ItemFlyTurtle.cpp:660–682  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658void ItemFlyTurtle::moveCannon(CrsGround &rGround) { moveNormal(rGround); }
659
660void ItemFlyTurtle::initDisappear() {
661 _12c &= ~1;
662 mEquipFlags = 0xffffffff;
663 _12c |= 0x80;
664
665 JGeometry::TVec3f norm, frDir;
666 getModelFrDir(&frDir);
667 if(mTransferFlags & 2) {
668 norm = (mNormal);
669 }
670 else {
671 norm.set(0.0f, 1.0f, 0.0f);
672 }
673
674 JGeometry::TMtx34f r_m;
675 ObjUtility::setRMtx(r_m, norm, frDir);
676 r_m[0][3] = mColPos.x;
677 r_m[1][3] = mColPos.y;
678 r_m[2][3] = mColPos.z;
679 mNewBounds = mBounds;
680 mBounds = mBombEffect->getBlastBound();
681 mBombEffect->init(r_m,1, 1.0f);
682}
683
684void ItemFlyTurtle::doDisappear() {
685 mDisScaleAnm.setAll(mEquipScale);

Callers

nothing calls this directly

Calls 3

getBlastBoundMethod · 0.80
setMethod · 0.45
initMethod · 0.45

Tested by

no test coverage detected