How can I detect a collision between 2 images? E.G if(Image1 collidesWith Image2){}
mangopearapples
16
Posting Whiz in Training
Recommended Answers
Jump to PostSimple geometry, really. Suppose the images are quadrilaterals. If any point of image1 is between the top and bottom of image2, and also between left and right of image2, then you have a collision. If image2 is a circle, it's still simple - if the pythagorean distance from any point …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.