Shape2D collide_and_get_contacts() Returning Weird Points For Certain Convex Polygons

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By MTareqAzim

I’m currently using Shape2D’s collide_and_get_contacts() methods to get the collision points of two colliding areas. It works well when checking rectangles with rectangles, but when I do rectangle to convex polygon collision, I get a weird value. Is this intended or am I doing something wrong?

I’m also using their global transforms, cause local transforms don’t seem to output proper values.

The colliding shapes:
Colliding Shapes

Their outputs:
Outputs

Further testing, you just get a bad output on anything that isn’t a normal rectangle. So if you rotate a rectangle, you get the bad output.

MTareqAzim | 2019-10-05 07:30