Skip to content

Commit

Permalink
Merge pull request #87903 from AThousandShips/collide_fix
Browse files Browse the repository at this point in the history
Fix `max_collisions` not being passed in `PhysicsBody3D::test_move`
  • Loading branch information
akien-mga committed Feb 3, 2024
2 parents f69aa5e + 6d3c987 commit 21d336d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scene/3d/physics_body_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ bool PhysicsBody3D::test_move(const Transform3D &p_from, const Vector3 &p_motion

PhysicsServer3D::MotionParameters parameters(p_from, p_motion, p_margin);
parameters.recovery_as_collision = p_recovery_as_collision;
parameters.max_collisions = p_max_collisions;

return PhysicsServer3D::get_singleton()->body_test_motion(get_rid(), parameters, r);
}
Expand Down

0 comments on commit 21d336d

Please sign in to comment.