aboutsummaryrefslogtreecommitdiff
path: root/modules/bullet/space_bullet.cpp
diff options
context:
space:
mode:
authorAndrea Catania2018-02-14 08:18:48 +0100
committerAndrea Catania2018-02-14 08:18:48 +0100
commitf48845428dcfe79edf381b1626e4ae7994fbdc96 (patch)
tree94315bb2e42aa362ea1e5bc531650dee8bd193a5 /modules/bullet/space_bullet.cpp
parent8cfe7988779121a742de6411fda8a243514b584d (diff)
downloadgodot-f48845428dcfe79edf381b1626e4ae7994fbdc96.tar.gz
godot-f48845428dcfe79edf381b1626e4ae7994fbdc96.tar.zst
godot-f48845428dcfe79edf381b1626e4ae7994fbdc96.zip
Added return true o collide when no rusult is NULL
Diffstat (limited to 'modules/bullet/space_bullet.cpp')
-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;
}
}
}