diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-30 19:08:31 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2020-05-30 19:08:31 +0200 |
commit | 09c9e16cb122f2939f60be7565712324897bd5f9 (patch) | |
tree | f39e8cd26654657592d6ba3f4ca96ae08d4f945a /src/math/Matrix.h | |
parent | Merge branch 'miami' of https://github.com/GTAmodding/re3 into miami (diff) | |
download | re3-09c9e16cb122f2939f60be7565712324897bd5f9.tar re3-09c9e16cb122f2939f60be7565712324897bd5f9.tar.gz re3-09c9e16cb122f2939f60be7565712324897bd5f9.tar.bz2 re3-09c9e16cb122f2939f60be7565712324897bd5f9.tar.lz re3-09c9e16cb122f2939f60be7565712324897bd5f9.tar.xz re3-09c9e16cb122f2939f60be7565712324897bd5f9.tar.zst re3-09c9e16cb122f2939f60be7565712324897bd5f9.zip |
Diffstat (limited to '')
-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 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); + } }; |