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

Function xSphereHitsBound

src/SB/Core/x/xBound.cpp:320–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320void xSphereHitsBound(const xSphere* o, const xBound* b, xCollis* c)
321{
322 switch (b->type)
323 {
324 case XBOUND_TYPE_SPHERE:
325 {
326 xSphereHitsSphere(o, &b->sph, c);
327 break;
328 }
329 case XBOUND_TYPE_OBB:
330 {
331 xBoundSphereHitsOBB(o, &b->box.box, b->mat, c);
332 break;
333 }
334 case XBOUND_TYPE_BOX:
335 {
336 xSphereHitsBox(o, &b->box.box, c);
337 break;
338 }
339 }
340}
341
342void xVecHitsBound(const xVec3* v, const xBound* b, xCollis* c)
343{

Callers 2

damage_entityFunction · 0.50
operator()Method · 0.50

Calls 3

xBoundSphereHitsOBBFunction · 0.85
xSphereHitsSphereFunction · 0.70
xSphereHitsBoxFunction · 0.70

Tested by

no test coverage detected