Skip to content

Commit

Permalink
Allow for 32 max collisions in test_body_motion
Browse files Browse the repository at this point in the history
  • Loading branch information
mihe committed Mar 15, 2024
1 parent 89f70e9 commit 7901a05
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 7901a05

Please sign in to comment.