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

Function xEntBeginUpdate

src/SB/Core/x/xEnt.cpp:956–974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

954}
955
956void xEntBeginUpdate(xEnt* ent, xScene* sc, F32 dt)
957{
958 if (ent->model)
959 {
960 xModelUpdate(ent->model, dt);
961
962 if (ent->frame)
963 {
964 xVec3Copy(&ent->frame->oldvel, &ent->frame->vel);
965
966 ent->frame->oldmat = ent->frame->mat;
967
968 xRotCopy(&ent->frame->oldrot, &ent->frame->rot);
969 xMat4x3Copy(&ent->frame->mat, xModelGetFrame(ent->model));
970
971 ent->frame->mode = 0;
972 }
973 }
974}
975
976void xEntEndUpdate(xEnt* ent, xScene* sc, F32 dt)
977{

Callers 4

BoulderRollCBFunction · 0.85
NPC_entwrap_updateFunction · 0.85
xEntBoulder_UpdateFunction · 0.85
xEntUpdateFunction · 0.85

Calls 5

xModelUpdateFunction · 0.85
xVec3CopyFunction · 0.85
xRotCopyFunction · 0.85
xMat4x3CopyFunction · 0.85
xModelGetFrameFunction · 0.85

Tested by

no test coverage detected