Fix issue with very small determinant when inverting a 3x3 matrix
This commit is contained in:
parent
37cf3de9fa
commit
6ef177329b
|
@ -22,6 +22,7 @@
|
|||
- Bug [#37](https://github.com/DanielChappuis/reactphysics3d/issues/37) has been fixed.
|
||||
- Bug [#62](https://github.com/DanielChappuis/reactphysics3d/issues/62) has been fixed.
|
||||
- Bug [#63](https://github.com/DanielChappuis/reactphysics3d/issues/63) has been fixed.
|
||||
- Bug [#82](https://github.com/DanielChappuis/reactphysics3d/issues/82) has been fixed.
|
||||
- Bug: the free() method was called in PoolAllocator instead of release() method of base allocator.
|
||||
|
||||
## Version 0.7.0 (May 1, 2018)
|
||||
|
|
|
@ -48,7 +48,7 @@ Matrix3x3 Matrix3x3::getInverse() const {
|
|||
decimal determinant = getDeterminant();
|
||||
|
||||
// Check if the determinant is equal to zero
|
||||
assert(std::abs(determinant) > MACHINE_EPSILON);
|
||||
assert(determinant != decimal(0.0));
|
||||
|
||||
decimal invDeterminant = decimal(1.0) / determinant;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user