summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamille Mohr-Daurat <pouleyKetchoup@gmail.com>2021-11-18 11:16:15 -0700
committerGitHub <noreply@github.com>2021-11-18 11:16:15 -0700
commitb7260e04cc2aa66b2aa091cfb508cbf4a14dc677 (patch)
tree798c07c15ddbbb312ad42400a12772699d4aeb92
parent84f59c60b07308a562b9c4bf79ca2d4d1fddb7a6 (diff)
parent27b52f6c46bd6d70fd667d34b5b44f954dd786ac (diff)
Merge pull request #44726 from madmiraal/fix-44644
Ignore Bullet collision contact points with distance = 0
-rw-r--r--modules/bullet/space_bullet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bullet/space_bullet.cpp b/modules/bullet/space_bullet.cpp
index 66d7370bd7..485fb8d3bc 100644
--- a/modules/bullet/space_bullet.cpp
+++ b/modules/bullet/space_bullet.cpp
@@ -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;