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

Function xEntBoulder_RealBUpdate

src/SB/Core/x/xEntBoulder.cpp:225–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void xEntBoulder_RealBUpdate(xEnt* ent, xVec3* pos)
226{
227 xVec3 vec;
228 xEntBoulder* boul = (xEntBoulder*)ent;
229
230 xMat3x3RMulVec(&vec, (xMat3x3*)boul->model->Mat, (xVec3*)&boul->localCenter);
231 xVec3Add(&boul->bound.sph.center, pos, &vec);
232 xBoundUpdate(&boul->bound);
233 zGridUpdateEnt(boul);
234}
235
236void xEntBoulder_Update(xEntBoulder* ent, xScene* sc, F32 dt)
237{

Callers 2

xEntBoulder_ResetFunction · 0.70
BoulderRollCBFunction · 0.50

Calls 4

xVec3AddFunction · 0.85
xBoundUpdateFunction · 0.85
xMat3x3RMulVecFunction · 0.70
zGridUpdateEntFunction · 0.50

Tested by

no test coverage detected