Просмотр исходного кода

Merge pull request #16681 from AndreaCatania/kin_t

Added return true o collide when no rusult is NULL
Rémi Verschelde 7 лет назад
Родитель
Сommit
2a754be71a
1 измененных файлов с 2 добавлено и 0 удалено
  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;
 			}
 		}
 	}