-
Notifications
You must be signed in to change notification settings - Fork 288
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
Inaccurate contact results from Bullet collision detector for falling objects #1184
Comments
|
I've noticed that the penetration depth from the contacts report here will come out negative for bodies that are One brute force solution could be to throw away contact points that have negative penetration depth. However, I think that would be losing valuable information, since we could instead use these points to avoid problems like excessive penetration and phasing. I'll take a look at the collision handling code to see if I can identify a way to leverage negative penetration information, although I'd appreciate any and all guidance on that, since it's a part of the codebase that I'm not familiar with. |
Also this may be related to what @karenliu has said about Bullet collision detector reporting collision points that are outside of the collision bodies. |
I've chosen the simple option of ignoring contact points with negative penetration depth for now. We can always improve the constraint solving in the future if we want to leverage the proximity information somehow. Some more questions to consider: Should we also filter out these phantom contact points when providing contact results to the user? And should we watch out for false negatives when the collision detector is being queried for a true/false response to whether there are collisions? |
Quick thoughts: We could have an option in |
Bug Report
Environment
Expected Behavior
When an object falls onto a surface (e.g. a sphere falls onto a plane) it should settle into place such that the object is just barely touching a surface (within some reasonable tolerance).
Current Behavior
When an object falls onto a surface, the Bullet collision detector reports contacts that are above the surface. As a result, objects that fell will settle into a position where they are hovering over the surface.
Note that if the object starts in contact with the surface but has no initial velocity, this phenomenon does not happen, even with gravity pushing the object down into the surface.
Steps to Reproduce
A regression test can be found in #1185
The text was updated successfully, but these errors were encountered: