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

Function xEntBoulder_FitToModel

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

Source from the content-addressed store, hash-verified

35static void RecurseChild(xBase* child, xEntBoulder** boulList, S32& currBoul);
36
37void xEntBoulder_FitToModel(xEntBoulder* ent)
38{
39 xVec3Copy(&ent->bound.cyl.center, (xVec3*)(&ent->model->Data->boundingSphere.center));
40 ent->bound.cyl.r = ent->model->Data->boundingSphere.radius;
41 xVec3Copy(&ent->localCenter, &ent->bound.cyl.center);
42 xVec3AddTo(&ent->bound.cyl.center, (xVec3*)&ent->model->Mat->pos);
43}
44
45void xEntBoulder_Render(xEnt* ent)
46{

Callers 1

xEntBoulder_InitFunction · 0.85

Calls 2

xVec3CopyFunction · 0.85
xVec3AddToFunction · 0.85

Tested by

no test coverage detected