Correct sign in mat4x4_rotate_Y

Signs were incorrect in mat4x4_rotate_Y.

Closes #1673.
master
gre-42 ago%!(EXTRA string=5 years) committed by Camilla Löwy
parent d7ae90a790
commit 67c720d117
  1. 4
      deps/linmath.h

4
deps/linmath.h vendored

@ -257,9 +257,9 @@ LINMATH_H_FUNC 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);

Loading…
Cancel
Save