From 6d3c98780805462c677e6cf17cb66c1bd299de29 Mon Sep 17 00:00:00 2001 From: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com> Date: Sat, 3 Feb 2024 16:19:09 +0100 Subject: [PATCH] Fix `max_collisions` not being passed in `PhysicsBody3D::test_move` --- scene/3d/physics_body_3d.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/3d/physics_body_3d.cpp b/scene/3d/physics_body_3d.cpp index 38c1f232ad88..be9323c07d4c 100644 --- a/scene/3d/physics_body_3d.cpp +++ b/scene/3d/physics_body_3d.cpp @@ -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); }