nimblephysics icon indicating copy to clipboard operation
nimblephysics copied to clipboard

refactor impulses

Open michguo opened this issue 2 years ago • 0 comments

  • Originally, the LCP solution was list of pointers. Each pointer pointed to a scalar py. We'd increment the pointer to access px and pz in the presence of friction.
  • Now, the LCP solution is a matrix with shape (numContacts, 3). The last two columns of each row are only used if friction is on.

TODO: Some tests are failing. To pass the tests, we need to add support for non-contact constraints with dynamic size impulses vector.

michguo avatar Jan 06 '22 00:01 michguo