diff options
author | Roman Masanin <36927roma@gmail.com> | 2020-09-15 22:24:22 +0200 |
---|---|---|
committer | Roman Masanin <36927roma@gmail.com> | 2020-09-15 22:24:22 +0200 |
commit | c19c5ca0833c384e40334d3bf596be15a1fb9524 (patch) | |
tree | 6176dbfccb60d11a785317dd1718dddb47a36151 /src | |
parent | revisit processVehicle (diff) | |
parent | Fix RotateY (diff) | |
download | re3-c19c5ca0833c384e40334d3bf596be15a1fb9524.tar re3-c19c5ca0833c384e40334d3bf596be15a1fb9524.tar.gz re3-c19c5ca0833c384e40334d3bf596be15a1fb9524.tar.bz2 re3-c19c5ca0833c384e40334d3bf596be15a1fb9524.tar.lz re3-c19c5ca0833c384e40334d3bf596be15a1fb9524.tar.xz re3-c19c5ca0833c384e40334d3bf596be15a1fb9524.tar.zst re3-c19c5ca0833c384e40334d3bf596be15a1fb9524.zip |
Diffstat (limited to '')
-rw-r--r-- | src/math/Matrix.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/math/Matrix.cpp b/src/math/Matrix.cpp index 80e287d3..3ac3e2b9 100644 --- a/src/math/Matrix.cpp +++ b/src/math/Matrix.cpp @@ -327,14 +327,14 @@ CMatrix::RotateY(float y) float px = m_matrix.pos.x; float pz = m_matrix.pos.z; - m_matrix.right.x = c * rx - s * rz; - m_matrix.right.z = c * rz + s * rx; - m_matrix.up.x = c * ux - s * uz; - m_matrix.up.z = c * uz + s * ux; - m_matrix.at.x = c * ax - s * az; - m_matrix.at.z = c * az + s * ax; - m_matrix.pos.x = c * px - s * pz; - m_matrix.pos.z = c * pz + s * px; + m_matrix.right.x = c * rx + s * rz; + m_matrix.right.z = c * rz - s * rx; + m_matrix.up.x = c * ux + s * uz; + m_matrix.up.z = c * uz - s * ux; + m_matrix.at.x = c * ax + s * az; + m_matrix.at.z = c * az - s * ax; + m_matrix.pos.x = c * px + s * pz; + m_matrix.pos.z = c * pz - s * px; } void |