I want to connect two rigid bodies with btPoint2PointConstraint.
At a glance it works fine, but they aren't constrained at pivot accurately. There is little error (gap).
In accordance with previous post, I tried the followings.
1. set ERP to 0.8. (CFM is 0)
2. increase the number of constraint solver iterations.
Code: Select all
constraint->setOverrideNumSolverIterations(1000);
Code: Select all
btScalar simulationSubStep = 1.f/1000.f;
world->stepSimulation(actualDeltaTime, 100, simulationSubStep);
I want to know, this error is unavoidable, or my usage of constraint solver is wrong?
Thanks in advance.