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

Function xModelAnimCollRefresh

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

Source from the content-addressed store, hash-verified

578}
579
580void xModelAnimCollRefresh(const xModelInstance& cm)
581{
582 xModelInstance& m = (xModelInstance&)cm;
583 U32 size = iModelVertCount(m.Data);
584 xMat4x3& mat = *(xMat4x3*)m.Mat;
585 xMat4x3 old_mat = mat;
586
587 mat = g_I3;
588 iModelVertEval(m.Data, 0, size, m.Mat, NULL, m.anim_coll.verts);
589 mat = old_mat;
590
591 m.Flags |= 0x1000;
592}
593
594xVec3 xModelGetBoneLocation(const xModelInstance& model, size_t index)
595{

Callers 1

xEntDriveUpdateFunction · 0.70

Calls 2

iModelVertCountFunction · 0.85
iModelVertEvalFunction · 0.50

Tested by

no test coverage detected