From e145d89a96b0027325b70eef3cac75ef3ac3210b Mon Sep 17 00:00:00 2001 From: gre-42 <63736956+gre-42@users.noreply.github.com> Date: Wed, 15 Apr 2020 18:00:11 +0200 Subject: [PATCH] Correct sign in mat4x4_rotate_Y Signs were incorrect in mat4x4_rotate_Y. Closes #1673. (cherry picked from commit 67c720d117673f0e2d4625ba8463d7472bf9a71a) --- deps/linmath.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/linmath.h b/deps/linmath.h index 9c2e2a0a..0ab7a414 100644 --- a/deps/linmath.h +++ b/deps/linmath.h @@ -237,9 +237,9 @@ static inline void mat4x4_rotate_Y(mat4x4 Q, mat4x4 M, float angle) float s = sinf(angle); float c = cosf(angle); mat4x4 R = { - { c, 0.f, s, 0.f}, + { c, 0.f, -s, 0.f}, { 0.f, 1.f, 0.f, 0.f}, - { -s, 0.f, c, 0.f}, + { s, 0.f, c, 0.f}, { 0.f, 0.f, 0.f, 1.f} }; mat4x4_mul(Q, M, R);