diff options
Diffstat (limited to '')
-rw-r--r-- | src/core/Placeable.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/Placeable.h b/src/core/Placeable.h index 2df26a7c..d39bb0d9 100644 --- a/src/core/Placeable.h +++ b/src/core/Placeable.h @@ -11,6 +11,12 @@ public: CPlaceable(void); virtual ~CPlaceable(void); CVector &GetPosition(void) { return m_matrix.GetPosition(); } + void SetPosition(float x, float y, float z) { + m_matrix.GetPosition().x = x; + m_matrix.GetPosition().y = y; + m_matrix.GetPosition().z = z; + } + void SetPosition(const CVector &pos) { m_matrix.GetPosition() = pos; } CVector &GetRight(void) { return m_matrix.GetRight(); } CVector &GetForward(void) { return m_matrix.GetForward(); } CVector &GetUp(void) { return m_matrix.GetUp(); } |