aboutsummaryrefslogtreecommitdiff
path: root/src/math/Matrix.h
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2020-04-15 00:10:50 +0300
committerSergeanur <s.anureev@yandex.ua>2020-04-15 00:10:50 +0300
commite373d0526ef07183cba8e89aba46f2ab416e67ba (patch)
treee6b2052e078cd2ad2ae1503262421c6858a20a0f /src/math/Matrix.h
parentc9ace44ca8abca62ece0012362b94b115be65e1b (diff)
parent6d934892ecd3c4b6f025fbe2c4e6504fd979d391 (diff)
Merge branch 'master' into MoreLanguages
# Conflicts: # src/core/Frontend.cpp # src/render/Font.cpp # src/render/Hud.cpp # src/render/Hud.h # src/text/Messages.cpp # src/text/Text.cpp
Diffstat (limited to 'src/math/Matrix.h')
-rw-r--r--src/math/Matrix.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/math/Matrix.h b/src/math/Matrix.h
index da38cb1d..35972e7f 100644
--- a/src/math/Matrix.h
+++ b/src/math/Matrix.h
@@ -243,6 +243,17 @@ public:
m_matrix.pos.y = 0.0f;
m_matrix.pos.z = 0.0f;
}
+ void ResetOrientation(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;
+ }
};