Merge pull request #42532 from madmiraal/fix-7920

Fix how Line2D obtains the other object's supports
This commit is contained in:
Rémi Verschelde 2020-10-03 21:49:14 +02:00 committed by GitHub
commit ce51efc293
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;