Explorar o código

Added return true o collide when no rusult is NULL

Andrea Catania %!s(int64=7) %!d(string=hai) anos
pai
achega
f48845428d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 {
 				if (!l_has_penetration)
 					break;
+				else
+					has_penetration = true;
 			}
 		}
 	}