| 747 | } |
| 748 | |
| 749 | void 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 | |
| 761 | void zNPCBSandy::InitFX() |
| 762 | { |
nothing calls this directly
no test coverage detected