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

Function GetBonePos

src/SB/Game/zNPCTypeBossSandy.cpp:940–963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938}
939
940static void GetBonePos(xVec3* result, xMat4x3* matArray, S32 index, xVec3* offset)
941{
942 xMat4x3 tmpMat;
943
944 if (index == 0)
945 {
946 xMat3x3RMulVec(result, matArray, offset);
947 xVec3AddTo(result, &matArray->pos);
948 }
949 else
950 {
951 xMat4x3Mul(&tmpMat, &matArray[index], matArray);
952
953 if (offset)
954 {
955 xMat3x3RMulVec(result, &tmpMat, offset);
956 xVec3AddTo(result, &tmpMat.pos);
957 }
958 else
959 {
960 xVec3Copy(result, &tmpMat.pos);
961 }
962 }
963}
964
965void zNPCBSandy::hiddenByCutscene()
966{

Callers

nothing calls this directly

Calls 4

xVec3AddToFunction · 0.85
xMat4x3MulFunction · 0.85
xVec3CopyFunction · 0.85
xMat3x3RMulVecFunction · 0.50

Tested by

no test coverage detected