I have some simple "U" shaped concave btGImpactMeshShape objects that are to be joined together with tight precision, like a 3D jigsaw puzzle.
The edges are all flat and at right angles to each other but when the concave surfaces come into contact with each other, a sheer force hits the moving object and it moves off along the flat surface, rather than simply stopping.
It only happens on the concave surfaces, not the outer convex surfaces.
I need the objects to rest inside tight right angles and sit still and not fly off at tangent angles.
I have played with all these settings: eg, enabling m_splitImpulse etc. ....to improve things but it doesn't go away, the weird sheer force remains.
m_tau = btScalar(0.6);
m_damping = btScalar(10.0);
m_friction = btScalar(0.3);
m_restitution = btScalar(0.0);
m_maxErrorReduction = btScalar(20.0);
m_numIterations = 10;
m_erp = btScalar(0.2);
m_erp2 = btScalar(0.1);
m_globalCfm = btScalar(0.0);
m_sor = btScalar(1.0);
m_splitImpulse = true;
m_splitImpulsePenetrationThreshold = 0.0001f;
m_linearSlop = btScalar(0.0);
m_warmstartingFactor=btScalar(0.85);
m_solverMode = SOLVER_USE_WARMSTARTING | SOLVER_SIMD;// | SOLVER_RANDMIZE_ORDER;
m_restingContactRestitutionThreshold = 2;//resting contact lifetime threshold to disable restitution
m_minimumSolverBatchSize = 128; //try to combine islands until the amount of constraints reaches this limit
Damping slows the moving object down heaps, but the sheer force seems to be throw the object off with no influence from damping.
I can't set the linear velocity to zero in the collision callback because I want the user to slide the piece along the flat concave surface as part of the process.
All the time the pieces are touching, the collision callback is firing.
I use a weak constraint to grab the piece and move it around.
The stationary pieces are "hanging" in space with their LinearFactors and AngularFactors set to zero so they do not fall with gravity.
The stationary pieces also have their massProps set to zero so that they still collide but do not fall with gravity.
I do not care about gravity at all, I want the pieces to all sit in space but join together with tight precision.
Thoughts anyone?
Cheers.

