Merge pull request #87903 from AThousandShips/collide_fix

Fix `max_collisions` not being passed in `PhysicsBody3D::test_move`
This commit is contained in:
Rémi Verschelde 2024-02-03 23:21:47 +01:00
commit 21d336d69d
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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);
}