From 27b52f6c46bd6d70fd667d34b5b44f954dd786ac Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Sun, 27 Dec 2020 12:29:39 +0000 Subject: [PATCH] Ignore Bullet collision contact points with distance = 0 --- modules/bullet/space_bullet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bullet/space_bullet.cpp b/modules/bullet/space_bullet.cpp index 3bfcd83606ef..f4bca8eef5b9 100644 --- a/modules/bullet/space_bullet.cpp +++ b/modules/bullet/space_bullet.cpp @@ -829,7 +829,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;