Merge pull request #34210 from madmiraal/fix-bullet-motion-test

Check that motion is not zero before doing a sweep test.
This commit is contained in:
Rémi Verschelde 2019-12-09 10:02:02 +01:00 committed by GitHub
commit e447f5ab04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -945,8 +945,8 @@ bool SpaceBullet::test_body_motion(RigidBodyBullet *p_body, const Transform &p_f
btVector3 motion;
G_TO_B(p_motion, motion);
{ /// phase two - sweep test, from a secure position without margin
if (!motion.fuzzyZero()) {
// Phase two - sweep test, from a secure position without margin
const int shape_count(p_body->get_shape_count());