summaryrefslogtreecommitdiff
path: root/servers/physics
diff options
context:
space:
mode:
authorPouleyKetchoupp <pouleyketchoup@gmail.com>2019-07-31 17:36:09 +0200
committerPouleyKetchoupp <pouleyketchoup@gmail.com>2019-07-31 17:36:09 +0200
commit53ac260d19282741da3618726ff1fa404b442344 (patch)
treeca765277ba66c7d1a3e73aaaa3f20d51d966eba0 /servers/physics
parentc9a1a69ad67d1d270627d11cb095d5bafb1beeb1 (diff)
Reverted fix that makes sense for collision_solver_2d_sat but not for the 3d version
(original commit: aab8da25ad2c3e6d2df03abbc8e35c1725938c40) Fixes #30886
Diffstat (limited to 'servers/physics')
-rw-r--r--servers/physics/collision_solver_sat.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/physics/collision_solver_sat.cpp b/servers/physics/collision_solver_sat.cpp
index d0f8fd8aff..a13fa65009 100644
--- a/servers/physics/collision_solver_sat.cpp
+++ b/servers/physics/collision_solver_sat.cpp
@@ -274,8 +274,8 @@ static void _generate_contacts_from_supports(const Vector3 *p_points_A, int p_po
points_B = p_points_B;
}
- int version_A = (pointcount_A > 2 ? 2 : pointcount_A) - 1;
- int version_B = (pointcount_B > 2 ? 2 : pointcount_B) - 1;
+ int version_A = (pointcount_A > 3 ? 3 : pointcount_A) - 1;
+ int version_B = (pointcount_B > 3 ? 3 : pointcount_B) - 1;
GenerateContactsFunc contacts_func = generate_contacts_func_table[version_A][version_B];
ERR_FAIL_COND(!contacts_func);