diff options
author | aap <aap@papnet.eu> | 2020-07-01 18:03:52 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-07-01 18:03:59 +0200 |
commit | 575f35f2c48354c6e5df5b936d35658f6e5bc873 (patch) | |
tree | f2c6cd046fd54978596ac86286fb6ab36e95123d /src/math | |
parent | a1356f10014c8bccb1454e083929286d28ff9d24 (diff) |
fixes to CBoat
Diffstat (limited to 'src/math')
-rw-r--r-- | src/math/Matrix.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/math/Matrix.h b/src/math/Matrix.h index d8920a65..c849a5c4 100644 --- a/src/math/Matrix.h +++ b/src/math/Matrix.h @@ -259,6 +259,14 @@ public: m_matrix.at.y = 0.0f; m_matrix.at.z = 1.0f; } + void SetTranslateOnly(float x, float y, float z) { + m_matrix.pos.x = x; + m_matrix.pos.y = y; + m_matrix.pos.z = z; + } + void SetTranslateOnly(const CVector& pos) { + SetTranslateOnly(pos.x, pos.y, pos.z); + } }; |