summaryrefslogtreecommitdiff
path: root/src/math/Matrix.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-07-01 18:03:52 +0200
committeraap <aap@papnet.eu>2020-07-01 18:03:59 +0200
commit575f35f2c48354c6e5df5b936d35658f6e5bc873 (patch)
treef2c6cd046fd54978596ac86286fb6ab36e95123d /src/math/Matrix.h
parenta1356f10014c8bccb1454e083929286d28ff9d24 (diff)
fixes to CBoat
Diffstat (limited to 'src/math/Matrix.h')
-rw-r--r--src/math/Matrix.h8
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);
+ }
};