Browse Source

Merge pull request #44726 from madmiraal/fix-44644

Ignore Bullet collision contact points with distance = 0
Camille Mohr-Daurat 3 years ago
parent
commit
b7260e04cc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/bullet/space_bullet.cpp

+ 1 - 1
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;