+1 vote

I'm currently using Shape2D's collideandget_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

in Engine by (13 points)

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.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.