Browse Source

Added return true o collide when no rusult is NULL

Andrea Catania 7 years ago
parent
commit
f48845428d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      modules/bullet/space_bullet.cpp

+ 2 - 0
modules/bullet/space_bullet.cpp

@@ -979,6 +979,8 @@ bool SpaceBullet::test_body_motion(RigidBodyBullet *p_body, const Transform &p_f
 			} else {
 			} else {
 				if (!l_has_penetration)
 				if (!l_has_penetration)
 					break;
 					break;
+				else
+					has_penetration = true;
 			}
 			}
 		}
 		}
 	}
 	}