I am currently trying to make a program/mini game which consists of a red rectangle going from one side of the screen to the other and you trying to ‘slice’ it (Fruit Ninja style). Creating the red rectangle and a green line which represents where your touch has been was fairly easy. But now, detecting when the line touches the rectangle is more difficult (at least for me ). What I did was create a KINEMATIC physics.body of a Polygon for the rectangle and one for the line and see when they overlap with testOverlap. The problem is the line always changes direction from one slice to the other, and so should the Polygon. I can’t seem to figure out a way to make it work properly as the dimensions of the Polygons are in vectrices. Can you will help me with this?
Thank you very much
PS: I’m currently in Japan so I’m sorry if I take some time to answer your questions.
@ColourCode - have you seen this recent thread?
@Ignatz - I didn’t see it. Thank you very much!