maf: Fix quat_getDirection;
@@ -186,7 +186,7 @@ MAF quat quat_normalize(quat q) {
MAF void quat_getDirection(quat q, float* x, float* y, float* z) {
*x = -(2.f * q[0] * q[2] + 2.f * q[3] * q[1]);
- *y = -(2.f * q[1] * q[2] + 2.f * q[3] * q[0]);
+ *y = -(2.f * q[1] * q[2] - 2.f * q[3] * q[0]);
*z = -(1.f - 2.f * q[0] * q[0] - 2.f * q[1] * q[1]);
}
