-
Notifications
You must be signed in to change notification settings - Fork 287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore phantom contact points (negative penetration depth) from Bullet #1185
Conversation
dart/constraint/ConstraintSolver.cpp
Outdated
// happening and the contact point should be ignored. | ||
// TODO(MXG): Investigate ways to leverage the proximity information of a | ||
// negative penetration to improve collision handling. | ||
else if(contact.penetrationDepth >= 0.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we would like to ignore negative penetration contacts even for soft contact as:
if(contact.penetrationDepth < 0.0)
continue;
if (isSoftContact(contact))
{
...
}
else
{
...
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mxgrey Any thoughts on this? 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the delay, I got sidetracked. Makes sense to me! I've updated the branch with this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Let's merge once CI tests are done.
Codecov Report
@@ Coverage Diff @@
## release-6.7 #1185 +/- ##
===============================================
+ Coverage 56.51% 56.57% +0.06%
===============================================
Files 345 346 +1
Lines 25654 25657 +3
===============================================
+ Hits 14498 14516 +18
+ Misses 11156 11141 -15
|
dart/constraint/ConstraintSolver.cpp
Outdated
// happening and the contact point should be ignored. | ||
// TODO(MXG): Investigate ways to leverage the proximity information of a | ||
// negative penetration to improve collision handling. | ||
if (contact.penetrationDepth >= 0.0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, wait. Actually, this should be:
if (contact.penetrationDepth < 0.0)
to match the original logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops! Thank goodness for unit tests 😅
…/dart into grey/bullet_sphere_error
This PR is for investigating the issue reported in #1184.
Before merging a pull request
CHANGELOG.md