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

Function xEntDefaultBoundUpdate

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

Source from the content-addressed store, hash-verified

1014}
1015
1016void xEntDefaultBoundUpdate(xEnt* ent, xVec3* pos)
1017{
1018 xBound* bound = &ent->bound;
1019
1020 if (bound->type == XBOUND_TYPE_SPHERE)
1021 {
1022 xVec3Copy(&bound->sph.center, pos);
1023
1024 bound->sph.center.y += 0.7f;
1025 bound->sph.r = 0.7f;
1026 }
1027
1028 xBoundUpdate(bound);
1029 zGridUpdateEnt(ent);
1030}
1031
1032void xEntDefaultTranslate(xEnt* ent, xVec3* dpos, xMat4x3* dmat)
1033{

Callers 7

BUpdateMethod · 0.70
zGridResetFunction · 0.50
zEntSimpleObj_ResetFunction · 0.50
zEntSimpleObjEventCBFunction · 0.50
BUpdateMethod · 0.50
PlayerBoundUpdateFunction · 0.50

Calls 3

xVec3CopyFunction · 0.85
xBoundUpdateFunction · 0.85
zGridUpdateEntFunction · 0.50

Tested by

no test coverage detected