瀏覽代碼
Fix for issue 4454, MatrixDecompose() gave incorrect output for certain combinations of scale and rotation (#4461)
pull/4462/head
waveydave
2 週之前
committed by
GitHub
沒有發現已知的金鑰在資料庫的簽署中
GPG Key ID: B5690EEEBB952194
共有
1 個文件被更改,包括
6 次插入 和
0 次删除
-
src/raymath.h
|
|
@ -2569,7 +2569,13 @@ RMAPI void MatrixDecompose(Matrix mat, Vector3 *translation, Quaternion *rotatio |
|
|
|
if (!FloatEquals(det, 0)) |
|
|
|
{ |
|
|
|
clone.m0 /= s.x; |
|
|
|
clone.m4 /= s.x; |
|
|
|
clone.m8 /= s.x; |
|
|
|
clone.m1 /= s.y; |
|
|
|
clone.m5 /= s.y; |
|
|
|
clone.m9 /= s.y; |
|
|
|
clone.m2 /= s.z; |
|
|
|
clone.m6 /= s.z; |
|
|
|
clone.m10 /= s.z; |
|
|
|
|
|
|
|
// Extract rotation |
|
|
|