We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I would like to check if there is an overlap between two random shapes.
First I played around with Fisica / Box2d. But it seems that collision detection does not work for two shapes created in the same place, since two things can't exist in the same place in the real world. And simulating reality is what these libraries were made for. The detection only works if there is a real collision by two objects that were moving towards each other.
One way is to draw the shapes into two PGraphics and compares their pixel arrays afterwards. But this seems to be a bit naive. Is there any better of doing this?