reactphysics3d icon indicating copy to clipboard operation
reactphysics3d copied to clipboard

assert(std::abs(determinant) > MACHINE_EPSILON);

Open ghost opened this issue 4 years ago • 1 comments

I'm at it again - assert(std::abs(determinant) > MACHINE_EPSILON); is firing:

reactphysics3d::Matrix2x2::getInverse(const reactphysics3d::Matrix2x2 * const this) (/home/ian/dev/hedgey/Engine/lib/reactphysics3d/src/mathematics/Matrix2x2.cpp:49) reactphysics3d::SolveHingeJointSystem::solvePositionConstraint(reactphysics3d::SolveHingeJointSystem * const this) (/home/ian/dev/hedgey/Engine/lib/reactphysics3d/src/systems/SolveHingeJointSystem.cpp:697) reactphysics3d::ConstraintSolverSystem::solvePositionConstraints(reactphysics3d::ConstraintSolverSystem * const this) (/home/ian/dev/hedgey/Engine/lib/reactphysics3d/src/systems/ConstraintSolverSystem.cpp:111) reactphysics3d::PhysicsWorld::solvePositionCorrection(reactphysics3d::PhysicsWorld * const this) (/home/ian/dev/hedgey/Engine/lib/reactphysics3d/src/engine/PhysicsWorld.cpp:430) reactphysics3d::PhysicsWorld::update(reactphysics3d::PhysicsWorld * const this, reactphysics3d::decimal timeStep) (/home/ian/dev/hedgey/Engine/lib/reactphysics3d/src/engine/PhysicsWorld.cpp:364)

This is on the first tick of my simulation as well!

Can I save the physics world to send to you?

Cheers, Ian

ghost avatar Dec 19 '20 10:12 ghost

Thanks for reporting this issue.

Do you have a simple piece of code with your joint where the issue happens so that I can try to reproduce it on my side ?

DanielChappuis avatar Dec 20 '20 15:12 DanielChappuis