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

Function NPCC_MakePerp

src/SB/Game/zNPCSupport.cpp:1237–1244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1235}
1236
1237void NPCC_MakePerp(xVec3* dir_perp, const xVec3* dir_axis)
1238{
1239 dir_perp->x = dir_axis->y - dir_axis->z;
1240 dir_perp->y = dir_axis->z - dir_axis->x;
1241 dir_perp->z = dir_axis->x - dir_axis->y;
1242
1243 xVec3Normalize(dir_perp, dir_perp);
1244}
1245
1246void NPCC_MakeArbPlane(const xVec3* dir_norm, xVec3* at, xVec3* rt)
1247{

Callers 5

ReconTarTarMethod · 0.85
ReconChuckMethod · 0.85
WaterSplashMethod · 0.85
ReconSlickOilMethod · 0.85
NPCC_MakeArbPlaneFunction · 0.85

Calls 1

xVec3NormalizeFunction · 0.50

Tested by

no test coverage detected