aboutsummaryrefslogtreecommitdiff
path: root/modules/bullet
diff options
context:
space:
mode:
authorAndrea Catania2018-02-14 08:18:48 +0100
committerHein-Pieter van Braam2018-02-19 22:21:58 +0100
commit285f47f0373c3dba4ed8dd7ce5ad3b602d2b8cb4 (patch)
tree90e9805aa7683b8a02eeea3696d71073e0744997 /modules/bullet
parent9fb843db0603cc9ccc0ffedd4c2a9fe61d83572d (diff)
downloadgodot-285f47f0373c3dba4ed8dd7ce5ad3b602d2b8cb4.tar.gz
godot-285f47f0373c3dba4ed8dd7ce5ad3b602d2b8cb4.tar.zst
godot-285f47f0373c3dba4ed8dd7ce5ad3b602d2b8cb4.zip
Added return true o collide when no rusult is NULL
(cherry picked from commit f48845428dcfe79edf381b1626e4ae7994fbdc96)
Diffstat (limited to 'modules/bullet')
-rw-r--r--modules/bullet/space_bullet.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/bullet/space_bullet.cpp b/modules/bullet/space_bullet.cpp
index 6f0cda895..88d9c20eb 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;
}
}
}