From 7c6f523747c2a90a4711d84a9a5af89af0a155fe Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Sun, 1 Dec 2024 13:03:23 -0500 Subject: [PATCH] Fix `GodotSpace3D::test_body_motion()` not setting `local_shape` --- modules/godot_physics_3d/godot_space_3d.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/godot_physics_3d/godot_space_3d.cpp b/modules/godot_physics_3d/godot_space_3d.cpp index 9c7ba6af778..4969915bea0 100644 --- a/modules/godot_physics_3d/godot_space_3d.cpp +++ b/modules/godot_physics_3d/godot_space_3d.cpp @@ -970,6 +970,7 @@ bool GodotSpace3D::test_body_motion(GodotBody3D *p_body, const PhysicsServer3D:: rcd.object = col_obj; rcd.shape = shape_idx; + rcd.local_shape = j; bool sc = GodotCollisionSolver3D::solve_static(body_shape, body_shape_xform, col_obj->get_shape(shape_idx), col_obj->get_transform() * col_obj->get_shape_transform(shape_idx), _rest_cbk_result, &rcd, nullptr, margin); if (!sc) { continue;