DanielChappuis / reactphysics3d

Open source C++ physics engine library in 3D
http://www.reactphysics3d.com
zlib License
1.53k stars 221 forks source link

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

Open ghost opened 3 years ago

ghost commented 3 years ago

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

DanielChappuis commented 3 years ago

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 ?