Skip to content

Commit

Permalink
Merge pull request #99901 from adamscott/local_shape-fix
Browse files Browse the repository at this point in the history
Fix `GodotSpace3D::test_body_motion()` not setting `local_shape`
  • Loading branch information
akien-mga committed Dec 2, 2024
2 parents 204ce5a + 7c6f523 commit c59f4be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/godot_physics_3d/godot_space_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c59f4be

Please sign in to comment.