Skip to content

Commit

Permalink
Merge pull request #2 from lirongf/release_2.2.0
Browse files Browse the repository at this point in the history
fix  matrix  bug
  • Loading branch information
GuoLei1990 authored Sep 5, 2019
2 parents ae55195 + 5bbf2e7 commit 42a1547
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/layaAir/laya/d3/math/Matrix4x4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -588,9 +588,9 @@ export class Matrix4x4 implements IClone {
re[10] = at.z;

// In case of reflexions//TODO:是否不用计算dot后的值即为结果
((re[0] * m11 + re[1] * m12 + re[2] * m13)/*Vector3.dot(right,Right)*/ < 0.0) && (se[0] = -sX);
((re[4] * m21 + re[5] * m22 + re[6] * m23)/* Vector3.dot(up, Up)*/ < 0.0) && (se[1] = -sY);
((re[8] * m31 + re[9] * m32 + re[10] * m33)/*Vector3.dot(at, Backward)*/ < 0.0) && (se[2] = -sZ);
((re[0] * m11 + re[1] * m12 + re[2] * m13)/*Vector3.dot(right,Right)*/ < 0.0) && (se.x = -sX);
((re[4] * m21 + re[5] * m22 + re[6] * m23)/* Vector3.dot(up, Up)*/ < 0.0) && (se.y = -sY);
((re[8] * m31 + re[9] * m32 + re[10] * m33)/*Vector3.dot(at, Backward)*/ < 0.0) && (se.z = -sZ);

return true;
}
Expand Down

0 comments on commit 42a1547

Please # to comment.