mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Allow kinematic bodies without shapes to still move, fixes #24775
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user