Implement/match LegoEntity::GetWorldPosition/Direction/Up (#672)

* Implement/match LegoEntity::GetPosition/Direction/Up

* Rename
This commit is contained in:
Christian Semmler
2024-03-13 20:29:28 -04:00
committed by GitHub
parent aaee10949e
commit 7edad07d18
3 changed files with 31 additions and 17 deletions

View File

@@ -184,22 +184,36 @@ void LegoEntity::FUN_10010c30()
}
}
// STUB: LEGO1 0x10010c60
Mx3DPointFloat LegoEntity::GetEntitydDirection()
// FUNCTION: LEGO1 0x10010c60
Mx3DPointFloat LegoEntity::GetWorldDirection()
{
return Mx3DPointFloat(0, 0, 0);
if (m_roi != NULL) {
m_worldDirection =
Mx3DPointFloat(m_roi->GetWorldDirection()[0], m_roi->GetWorldDirection()[1], m_roi->GetWorldDirection()[2]);
}
return m_worldDirection;
}
// STUB: LEGO1 0x10010cf0
Mx3DPointFloat LegoEntity::GetEntityUp()
// FUNCTION: LEGO1 0x10010cf0
Mx3DPointFloat LegoEntity::GetWorldUp()
{
return Mx3DPointFloat(0, 0, 0);
if (m_roi != NULL) {
m_worldUp = Mx3DPointFloat(m_roi->GetWorldUp()[0], m_roi->GetWorldUp()[1], m_roi->GetWorldUp()[2]);
}
return m_worldUp;
}
// STUB: LEGO1 0x10010d80
Mx3DPointFloat LegoEntity::GetEntityLocation()
// FUNCTION: LEGO1 0x10010d80
Mx3DPointFloat LegoEntity::GetWorldPosition()
{
return Mx3DPointFloat(0, 0, 0);
if (m_roi != NULL) {
m_worldLocation =
Mx3DPointFloat(m_roi->GetWorldPosition()[0], m_roi->GetWorldPosition()[1], m_roi->GetWorldPosition()[2]);
}
return m_worldLocation;
}
// FUNCTION: LEGO1 0x10010e10