소스 검색

Ignore Bullet collision contact points with distance = 0

Marcel Admiraal 4 년 전
부모
커밋
27b52f6c46
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/bullet/space_bullet.cpp

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