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

@@ -199,12 +199,12 @@ void LegoPointOfViewController::SetEntity(LegoEntity* p_entity)
CalcLocalTransform(
Mx3DPointFloat(
m_entity->GetEntityLocation()[0],
m_entity->GetEntityLocation()[1] + m_entityOffsetUp,
m_entity->GetEntityLocation()[2]
m_entity->GetWorldPosition()[0],
m_entity->GetWorldPosition()[1] + m_entityOffsetUp,
m_entity->GetWorldPosition()[2]
),
m_entity->GetEntitydDirection(),
m_entity->GetEntityUp(),
m_entity->GetWorldDirection(),
m_entity->GetWorldUp(),
mat
);