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

Function iModelFile_RWMultiAtomic

src/SB/Core/gc/iModel.cpp:173–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171 iCameraDestroy(instance_camera);
172 RpWorldDestroy(instance_world);
173
174 if (gLastAtomicCount > 1)
175 {
176 maxRadius = -1.0f;
177 maxIndex = 0;
178
179 for (i = 0; i < gLastAtomicCount; i++)
180 {
181 if (gLastAtomicList[i]->boundingSphere.radius > maxRadius)
182 {
183 maxRadius = gLastAtomicList[i]->boundingSphere.radius;
184 maxIndex = i;
185 }
186 }
187
188 for (i = 0; i < gLastAtomicCount; i++)
189 {
190 if (i != maxIndex)
191 {
192 testRadius = xVec3Dist((xVec3*)&gLastAtomicList[i]->boundingSphere.center,

Callers 8

Model_ReadFunction · 0.50
PipeForAllSceneModelsFunction · 0.50
zCollGeom_EntSetupFunction · 0.50
zEntRecurseModelInfoFunction · 0.50
CutsceneShadowRenderFunction · 0.50
xEntLoadModelFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected