From 285f47f0373c3dba4ed8dd7ce5ad3b602d2b8cb4 Mon Sep 17 00:00:00 2001 From: Andrea Catania Date: Wed, 14 Feb 2018 08:18:48 +0100 Subject: [PATCH] Added return true o collide when no rusult is NULL (cherry picked from commit f48845428dcfe79edf381b1626e4ae7994fbdc96) --- modules/bullet/space_bullet.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/bullet/space_bullet.cpp b/modules/bullet/space_bullet.cpp index 6f0cda8957e..88d9c20ebaa 100644 --- a/modules/bullet/space_bullet.cpp +++ b/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; } } }