diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-10-03 21:49:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-03 21:49:14 +0200 |
commit | ce51efc2930d24e01ad4428fd3e5885cf1da5323 (patch) | |
tree | 6ee8dcc8574f903e93e49f0a1079268fd801c328 | |
parent | aa38a667d1390235c8cc651adb546c01129619d0 (diff) | |
parent | 7e44682c0382779a6142a3cfa7c712d85d8ec928 (diff) |
Merge pull request #42532 from madmiraal/fix-7920
Fix how Line2D obtains the other object's supports
-rw-r--r-- | servers/physics_2d/collision_solver_2d_sw.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/physics_2d/collision_solver_2d_sw.cpp b/servers/physics_2d/collision_solver_2d_sw.cpp index beba709807..0e056691c7 100644 --- a/servers/physics_2d/collision_solver_2d_sw.cpp +++ b/servers/physics_2d/collision_solver_2d_sw.cpp @@ -47,7 +47,7 @@ bool CollisionSolver2DSW::solve_static_line(const Shape2DSW *p_shape_A, const Tr Vector2 supports[2]; int support_count; - p_shape_B->get_supports(p_transform_A.affine_inverse().basis_xform(-n).normalized(), supports, support_count); + p_shape_B->get_supports(p_transform_B.affine_inverse().basis_xform(-n).normalized(), supports, support_count); bool found = false; |