Skip to content

Commit

Permalink
Merge pull request #44726 from madmiraal/fix-44644
Browse files Browse the repository at this point in the history
Ignore Bullet collision contact points with distance = 0
  • Loading branch information
pouleyKetchoupp authored Nov 18, 2021
2 parents 84f59c6 + 27b52f6 commit b7260e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/bullet/space_bullet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ void SpaceBullet::check_body_collision() {
btManifoldPoint &pt = contactManifold->getContactPoint(0);
#endif
if (
pt.getDistance() <= 0.0 ||
pt.getDistance() < 0.0 ||
bodyA->was_colliding(bodyB) ||
bodyB->was_colliding(bodyA)) {
Vector3 collisionWorldPosition;
Expand Down

0 comments on commit b7260e0

Please sign in to comment.