Skip to content

Commit

Permalink
Ignore Bullet collision contact points with distance = 0
Browse files Browse the repository at this point in the history
  • Loading branch information
madmiraal committed Dec 27, 2020
1 parent d55e335 commit 27b52f6
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 @@ -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;
Expand Down

0 comments on commit 27b52f6

Please sign in to comment.