diff options
author | Nikolay Korolev <nickvnuk@gmail.com> | 2019-10-06 13:26:50 +0200 |
---|---|---|
committer | Nikolay Korolev <nickvnuk@gmail.com> | 2019-10-06 13:26:50 +0200 |
commit | e10f5ee6a3f94a5ff2559f868c884e47d4628271 (patch) | |
tree | 3b2a2ceafc26e4215b49bf56e75cf80568251f26 /src/math/math.cpp | |
parent | car AI (diff) | |
parent | Fixed player blip heading when looking left/right/behind (diff) | |
download | re3-e10f5ee6a3f94a5ff2559f868c884e47d4628271.tar re3-e10f5ee6a3f94a5ff2559f868c884e47d4628271.tar.gz re3-e10f5ee6a3f94a5ff2559f868c884e47d4628271.tar.bz2 re3-e10f5ee6a3f94a5ff2559f868c884e47d4628271.tar.lz re3-e10f5ee6a3f94a5ff2559f868c884e47d4628271.tar.xz re3-e10f5ee6a3f94a5ff2559f868c884e47d4628271.tar.zst re3-e10f5ee6a3f94a5ff2559f868c884e47d4628271.zip |
Diffstat (limited to 'src/math/math.cpp')
-rw-r--r-- | src/math/math.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/math/math.cpp b/src/math/math.cpp index 66260709..0707e3d2 100644 --- a/src/math/math.cpp +++ b/src/math/math.cpp @@ -47,6 +47,12 @@ CMatrix::RotateX(float x) } void +CMatrix::RotateZ(float z) +{ + Rotate(0.0f, 0.0f, z); +} + +void CMatrix::Reorthogonalise(void) { CVector &r = GetRight(); |