Skip to content

Commit

Permalink
Merge pull request godotengine#89517 from mihe/32-max-collisions
Browse files Browse the repository at this point in the history
Allow for 32 max collisions in `test_body_motion`
  • Loading branch information
akien-mga committed Mar 15, 2024
2 parents 691bd17 + 7901a05 commit 84bdc8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/physics_3d/godot_space_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,7 @@ bool GodotSpace3D::test_body_motion(GodotBody3D *p_body, const PhysicsServer3D::
//this took about a week to get right..
//but is it right? who knows at this point..

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

if (r_result) {
*r_result = PhysicsServer3D::MotionResult();
Expand Down

0 comments on commit 84bdc8d

Please sign in to comment.