diff --git a/LEGO1/lego/legoomni/include/legonamedplane.h b/LEGO1/lego/legoomni/include/legonamedplane.h index aa4facea..a97cd8fb 100644 --- a/LEGO1/lego/legoomni/include/legonamedplane.h +++ b/LEGO1/lego/legoomni/include/legonamedplane.h @@ -17,6 +17,10 @@ class LegoNamedPlane { void SetName(const char* p_name) { m_name = p_name; } const MxString* GetName() const { return &m_name; } + void SetPosition(const Mx3DPointFloat& p_position) { m_position = p_position; } + void SetDirection(const Mx3DPointFloat& p_direction) { m_direction = p_direction; } + void SetUp(const Mx3DPointFloat& p_up) { m_up = p_up; } + // FUNCTION: LEGO1 0x100344d0 MxResult Serialize(LegoFile* p_file) { diff --git a/LEGO1/lego/legoomni/src/paths/legopathactor.cpp b/LEGO1/lego/legoomni/src/paths/legopathactor.cpp index 571f2b0e..0479e05d 100644 --- a/LEGO1/lego/legoomni/src/paths/legopathactor.cpp +++ b/LEGO1/lego/legoomni/src/paths/legopathactor.cpp @@ -4,6 +4,7 @@ #include "geom/legounkown100db7f4.h" #include "legocachesoundmanager.h" #include "legocameracontroller.h" +#include "legonamedplane.h" #include "legonavcontroller.h" #include "legopathboundary.h" #include "legopathedgecontainer.h" @@ -719,8 +720,11 @@ void LegoPathActor::VTable0xa8() } } -// STUB: LEGO1 0x1002f770 +// FUNCTION: LEGO1 0x1002f770 void LegoPathActor::UpdatePlane(LegoNamedPlane& p_namedPlane) { - // TODO + p_namedPlane.SetName(m_boundary->GetName()); + p_namedPlane.SetPosition(GetWorldPosition()); + p_namedPlane.SetDirection(GetWorldDirection()); + p_namedPlane.SetUp(GetWorldUp()); } diff --git a/LEGO1/lego/sources/geom/legowegedge.h b/LEGO1/lego/sources/geom/legowegedge.h index 1e774abf..1adbac27 100644 --- a/LEGO1/lego/sources/geom/legowegedge.h +++ b/LEGO1/lego/sources/geom/legowegedge.h @@ -48,7 +48,7 @@ class LegoWEGEdge : public LegoWEEdge { Mx4DPointFloat* GetEdgeNormal(int index) { return &m_edgeNormals[index]; } // FUNCTION: BETA10 0x1001c9b0 - LegoChar* GetName() { return m_name; } + const LegoChar* GetName() { return m_name; } void SetFlag0x10(LegoU32 p_disable) {