From 09c9e16cb122f2939f60be7565712324897bd5f9 Mon Sep 17 00:00:00 2001 From: Nikolay Korolev Date: Sat, 30 May 2020 20:08:31 +0300 Subject: roadblocks --- src/math/Matrix.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/math') diff --git a/src/math/Matrix.h b/src/math/Matrix.h index 1d26cc20..9979e701 100644 --- a/src/math/Matrix.h +++ b/src/math/Matrix.h @@ -255,6 +255,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); + } }; -- cgit v1.2.3