Allow the ForkLiftDemo to toggle between MLCP and SI solver, using F6 key.
Apply patch for CMake config, see Issue 754 (Issue 753) Fix a few issue with the MLCP solver: allow split impulse, and fix offset in friction dependencies
This commit is contained in:
@@ -1782,7 +1782,7 @@ bool btSolveDantzigLCP (int n, btScalar *A, btScalar *x, btScalar *b,
|
||||
{
|
||||
s_error = false;
|
||||
|
||||
printf("btSolveDantzigLCP n=%d\n",n);
|
||||
// printf("btSolveDantzigLCP n=%d\n",n);
|
||||
btAssert (n>0 && A && x && b && lo && hi && nub >= 0 && nub <= n);
|
||||
#ifdef BT_DEBUG
|
||||
{
|
||||
@@ -2011,7 +2011,7 @@ bool btSolveDantzigLCP (int n, btScalar *A, btScalar *x, btScalar *b,
|
||||
// our fingers and exit with the current solution.
|
||||
if (s <= btScalar(0.0))
|
||||
{
|
||||
printf("LCP internal error, s <= 0 (s=%.4e)",(double)s);
|
||||
// printf("LCP internal error, s <= 0 (s=%.4e)",(double)s);
|
||||
if (i < n) {
|
||||
btSetZero (x+i,n-i);
|
||||
btSetZero (w+i,n-i);
|
||||
|
||||
Reference in New Issue
Block a user