Skip to main content
gamedev.net
🔒 Locked

Programming rectangle intersection.

Started by wyrd Jul 1, 2004 at 5:33 PM 2 replies 650+ views
Original Post
wyrd
wyrd
I'm programming my own Rectangle struct, and was wondering if anyone knew of any links, tutorials, whatever on how to determine if the two rectangles intersect. Thanks in advance.
VThornheart
VThornheart
Aye, here's a link:

http://www.gamedev.net/reference/articles/article735.asp

It starts off with box collision, and if I remember correctly it shows more detailed collision techniques too. Hopefully it'll help!
-Vendal Thornheart=) Programming for a better tomorrow... well,for a better simulated tomorrow. ;)
wyrd
wyrd
Heh.. figures it was that easy. I always tend to overthink.
VThornheart
VThornheart
Hey, no worries - actually, I asked the exact same question a few months ago, someone pointed to the exact same article, and I had the exact same reaction =) =) Us programmer sorts tend to overthink issues, but sometimes that works to our great advantage too =)

And when it works to our disadvantage? That's the great thing about the 'net; you know that there's at least one person out there who experienced the same problem and is willing to help out =)
-Vendal Thornheart=) Programming for a better tomorrow... well,for a better simulated tomorrow. ;)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.