Allow kinematic bodies without shapes to still move, fixes #24775

This commit is contained in:
Juan Linietsky
2019-02-16 11:06:17 -03:00
parent 9ae86e90f9
commit f439b786ea
4 changed files with 20 additions and 0 deletions

View File

@@ -717,6 +717,11 @@ bool SpaceSW::test_body_motion(BodySW *p_body, const Transform &p_from, const Ve
}
if (!shapes_found) {
if (r_result) {
*r_result = PhysicsServer::MotionResult();
r_result->motion = p_motion;
}
return false;
}