Skip to content

Commit 84bdc8d

Browse files
committed
Merge pull request godotengine#89517 from mihe/32-max-collisions
Allow for 32 max collisions in `test_body_motion`
2 parents 691bd17 + 7901a05 commit 84bdc8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

servers/physics_3d/godot_space_3d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ bool GodotSpace3D::test_body_motion(GodotBody3D *p_body, const PhysicsServer3D::
655655
//this took about a week to get right..
656656
//but is it right? who knows at this point..
657657

658-
ERR_FAIL_INDEX_V(p_parameters.max_collisions, PhysicsServer3D::MotionResult::MAX_COLLISIONS, false);
658+
ERR_FAIL_COND_V(p_parameters.max_collisions < 0 || p_parameters.max_collisions > PhysicsServer3D::MotionResult::MAX_COLLISIONS, false);
659659

660660
if (r_result) {
661661
*r_result = PhysicsServer3D::MotionResult();

0 commit comments

Comments
 (0)