diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-06-30 12:59:55 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-06-30 12:59:55 +0200 |
commit | e2bd3573b4d44b8f80197d8de98fcfc91e2229b8 (patch) | |
tree | 7e3436ed3945245fca67127d00e0ccfee6d31239 /src/math/Matrix.h | |
parent | ProcessCarUpdate (diff) | |
download | re3-e2bd3573b4d44b8f80197d8de98fcfc91e2229b8.tar re3-e2bd3573b4d44b8f80197d8de98fcfc91e2229b8.tar.gz re3-e2bd3573b4d44b8f80197d8de98fcfc91e2229b8.tar.bz2 re3-e2bd3573b4d44b8f80197d8de98fcfc91e2229b8.tar.lz re3-e2bd3573b4d44b8f80197d8de98fcfc91e2229b8.tar.xz re3-e2bd3573b4d44b8f80197d8de98fcfc91e2229b8.tar.zst re3-e2bd3573b4d44b8f80197d8de98fcfc91e2229b8.zip |
Diffstat (limited to 'src/math/Matrix.h')
-rw-r--r-- | src/math/Matrix.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/math/Matrix.h b/src/math/Matrix.h index 63cb2753..6e1001cb 100644 --- a/src/math/Matrix.h +++ b/src/math/Matrix.h @@ -202,6 +202,21 @@ public: void CopyOnlyMatrix(CMatrix *other){ m_matrix = other->m_matrix; } + void SetUnity(void) { + m_matrix.right.x = 1.0f; + m_matrix.right.y = 0.0f; + m_matrix.right.z = 0.0f; + m_matrix.up.x = 0.0f; + m_matrix.up.y = 1.0f; + m_matrix.up.z = 0.0f; + m_matrix.at.x = 0.0f; + m_matrix.at.y = 0.0f; + m_matrix.at.z = 1.0f; + m_matrix.pos.x = 0.0f; + m_matrix.pos.x = 0.0f; + m_matrix.pos.y = 0.0f; + m_matrix.pos.z = 0.0f; + } }; inline CMatrix& |