MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / CalcMagnetizeInfo

Method CalcMagnetizeInfo

src/SB/Game/zNPCTypeBossSandy.cpp:749–759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

747}
748
749void zNPCBSandy::CalcMagnetizeInfo()
750{
751 xMat4x3 boneMat;
752 xQuatFromMat(&this->qBoulder, (xMat3x3*)this->headBoulder->model->Mat);
753 xVec3Copy(&this->pBoulder, (xVec3*)&this->headBoulder->model->Mat->pos);
754 xMat4x3Mul(&boneMat, (xMat4x3*)&this->model->Mat[sBone[1]], (xMat4x3*)this->model->Mat);
755 xQuatFromMat(&this->qHead, &boneMat);
756 xMat3x3RMulVec(&this->pHead, &boneMat, &sBoneOffset[1]);
757 xVec3AddTo(&this->pHead, &boneMat.pos);
758 magnetizeTime = xVec3Dist(&this->pHead, &this->pBoulder) * 0.1f;
759}
760
761void zNPCBSandy::InitFX()
762{

Callers

nothing calls this directly

Calls 6

xVec3CopyFunction · 0.85
xMat4x3MulFunction · 0.85
xVec3AddToFunction · 0.85
xVec3DistFunction · 0.85
xQuatFromMatFunction · 0.50
xMat3x3RMulVecFunction · 0.50

Tested by

no test coverage detected