summaryrefslogtreecommitdiffstats
path: root/src/math
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-04-05 11:35:51 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-04-05 11:35:51 +0200
commit057b28e39b2e58aae1f47d44bd1ce6222a781978 (patch)
treef9f207d74461f98f46baf184d01e56d2fb8fd76b /src/math
parentMerge remote-tracking branch 'upstream/master' (diff)
downloadre3-057b28e39b2e58aae1f47d44bd1ce6222a781978.tar
re3-057b28e39b2e58aae1f47d44bd1ce6222a781978.tar.gz
re3-057b28e39b2e58aae1f47d44bd1ce6222a781978.tar.bz2
re3-057b28e39b2e58aae1f47d44bd1ce6222a781978.tar.lz
re3-057b28e39b2e58aae1f47d44bd1ce6222a781978.tar.xz
re3-057b28e39b2e58aae1f47d44bd1ce6222a781978.tar.zst
re3-057b28e39b2e58aae1f47d44bd1ce6222a781978.zip
Diffstat (limited to 'src/math')
-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;
+ }
};