Name for bounding box in ROI

This commit is contained in:
Fabian Neundorf 2025-05-31 23:31:23 +02:00
parent 9134dd791c
commit 639faaa635
4 changed files with 9 additions and 9 deletions

View File

@ -500,7 +500,7 @@ LegoROI* LegoCharacterManager::CreateActorROI(const char* p_key)
boundingBox.Max()[0] = g_actorLODs[c_topLOD].m_boundingBox[3];
boundingBox.Max()[1] = g_actorLODs[c_topLOD].m_boundingBox[4];
boundingBox.Max()[2] = g_actorLODs[c_topLOD].m_boundingBox[5];
roi->SetUnknown0x80(boundingBox);
roi->SetBoundingBox(boundingBox);
comp = new CompoundObject();
roi->SetComp(comp);
@ -551,7 +551,7 @@ LegoROI* LegoCharacterManager::CreateActorROI(const char* p_key)
childBoundingBox.Max()[0] = g_actorLODs[i + 1].m_boundingBox[3];
childBoundingBox.Max()[1] = g_actorLODs[i + 1].m_boundingBox[4];
childBoundingBox.Max()[2] = g_actorLODs[i + 1].m_boundingBox[5];
childROI->SetUnknown0x80(childBoundingBox);
childROI->SetBoundingBox(childBoundingBox);
CalcLocalTransform(
Mx3DPointFloat(g_actorLODs[i + 1].m_position),
@ -1073,7 +1073,7 @@ MxResult LegoCharacterManager::UpdateBoundingSphereAndBox(LegoROI* p_roi)
SET3(boundingBox.Min(), min);
SET3(boundingBox.Max(), max);
p_roi->SetUnknown0x80(boundingBox);
p_roi->SetBoundingBox(boundingBox);
p_roi->WrappedUpdateWorldData();

View File

@ -150,8 +150,8 @@ LegoResult LegoROI::Read(
goto done;
}
SET3(m_unk0x80.Min(), box.GetMin());
SET3(m_unk0x80.Max(), box.GetMax());
SET3(m_boundingBox.Min(), box.GetMin());
SET3(m_boundingBox.Max(), box.GetMax());
if (p_storage->Read(&length, sizeof(LegoU32)) != SUCCESS) {
goto done;
@ -617,8 +617,8 @@ LegoU32 LegoROI::FUN_100a9410(
Mx3DPointFloat local4c(p_v1);
local58 = m_unk0x80.Min();
locala8 = m_unk0x80.Max();
local58 = m_boundingBox.Min();
locala8 = m_boundingBox.Max();
localc0[3] = local9c[3] = local168[3] = 1.0f;

View File

@ -78,7 +78,7 @@ class LegoROI : public ViewROI {
void SetComp(CompoundObject* p_comp) { comp = p_comp; }
void SetBoundingSphere(const BoundingSphere& p_sphere) { m_sphere = m_world_bounding_sphere = p_sphere; }
void SetUnknown0x80(const BoundingBox& p_unk0x80) { m_unk0x80 = p_unk0x80; }
void SetBoundingBox(const BoundingBox& p_box) { m_boundingBox = p_box; }
// SYNTHETIC: LEGO1 0x100a82b0
// LegoROI::`scalar deleting destructor'

View File

@ -70,7 +70,7 @@ class OrientableROI : public ROI {
protected:
MxMatrix m_local2world; // 0x10
BoundingBox m_world_bounding_box; // 0x58
BoundingBox m_unk0x80; // 0x80
BoundingBox m_boundingBox; // 0x80
BoundingSphere m_world_bounding_sphere; // 0xa8
Mx3DPointFloat m_world_velocity; // 0xc0
OrientableROI* m_parentROI; // 0xd4