summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-27 12:29:39 +0000
committerMarcel Admiraal <madmiraal@users.noreply.github.com>2020-12-27 12:32:48 +0000
commit27b52f6c46bd6d70fd667d34b5b44f954dd786ac (patch)
tree3fddba92d2cbe3c359e142f1b76b7b161854cf2a /modules
parentd55e335026e4848d4d2ec21db8f334a9429c8cc8 (diff)
Ignore Bullet collision contact points with distance = 0
Diffstat (limited to 'modules')
-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 3bfcd83606..f4bca8eef5 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;