mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 08:24:16 +00:00
Implement/match LegoAnimPresenter::VTable0x94 (#852)
This commit is contained in:

committed by
GitHub

parent
054120bc5d
commit
31f5143741
@@ -1105,11 +1105,34 @@ void LegoAnimPresenter::FUN_1006c8a0(MxBool p_bool)
|
||||
}
|
||||
}
|
||||
|
||||
// STUB: LEGO1 0x1006c8f0
|
||||
MxResult LegoAnimPresenter::VTable0x94(Vector3&, Vector3&, float, float, Vector3&)
|
||||
// FUNCTION: LEGO1 0x1006c8f0
|
||||
// FUNCTION: BETA10 0x1005206c
|
||||
MxU32 LegoAnimPresenter::VTable0x94(Vector3& p_vec1, Vector3& p_vec2, float p_f1, float p_f2, Vector3& p_vec3)
|
||||
{
|
||||
// TODO
|
||||
return SUCCESS;
|
||||
Mx3DPointFloat a, b;
|
||||
|
||||
b = p_vec2;
|
||||
((Vector3&) b).Mul(p_f1);
|
||||
((Vector3&) b).Add(&p_vec1);
|
||||
|
||||
a = b;
|
||||
((Vector3&) a).Sub(&m_unk0xa8);
|
||||
|
||||
float len = a.LenSquared();
|
||||
if (len <= 0.0f) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (m_unk0xa4 + p_f2 >= sqrt(len) && m_roiMapSize != 0 && m_roiMap != NULL) {
|
||||
for (MxU32 i = 1; i <= m_roiMapSize; i++) {
|
||||
if (m_roiMap[i]->GetLODCount() != 0 &&
|
||||
m_roiMap[i]->FUN_100a9410(p_vec1, p_vec2, p_f1, p_f2, p_vec3, FALSE)) {
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// FUNCTION: LEGO1 0x1006ca50
|
||||
|
Reference in New Issue
Block a user