Merge pull request #6743 from mateka/issue-6296
Issue #6296: When searching for control, checking if matrix is inversible
This commit is contained in:
commit
b9e010fb7f
2 changed files with 4 additions and 1 deletions
|
|
@ -424,7 +424,7 @@ Matrix32 Matrix32::inverse() const {
|
|||
|
||||
void Matrix32::affine_invert() {
|
||||
|
||||
float det = elements[0][0]*elements[1][1] - elements[1][0]*elements[0][1];
|
||||
float det = basis_determinant();
|
||||
ERR_FAIL_COND(det==0);
|
||||
float idet = 1.0 / det;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue