| 938 | } |
| 939 | |
| 940 | static 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 | |
| 965 | void zNPCBSandy::hiddenByCutscene() |
| 966 | { |
nothing calls this directly
no test coverage detected