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

Function xModelGetBoneMat

src/SB/Core/x/xModel.cpp:607–617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

605}
606
607void xModelGetBoneMat(xMat4x3& mat, const xModelInstance& model, size_t index)
608{
609 const xMat4x3& root_mat = *(xMat4x3*)model.Mat;
610 if (index == 0)
611 {
612 mat = root_mat;
613 return;
614 }
615 const xMat4x3& anim_mat = *(xMat4x3*)(model.Mat + index);
616 xMat4x3Mul(&mat, &anim_mat, &root_mat);
617}

Callers 1

refresh_trailFunction · 0.50

Calls 1

xMat4x3MulFunction · 0.85

Tested by

no test coverage detected