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

Function xRayHitsBoxFast

src/SB/Core/x/xCollideFast.cpp:31–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31U32 xRayHitsBoxFast(const xRay3* r, const xBox* b)
32{
33 xIsect isect;
34 iBoxIsectRay(b, r, &isect);
35 return isect.penned <= 0.0f || isect.contained <= 0.0f;
36}

Callers 2

SweptSphereHitsCameraEntFunction · 0.70
SweptSphereHitsEntCBFunction · 0.70

Calls 1

iBoxIsectRayFunction · 0.50

Tested by

no test coverage detected