Help with Collision

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

User avatar
Ginto8
ES Beta Backer
ES Beta Backer
Posts: 1064
Joined: Tue Jan 06, 2009 4:12 pm
Programming Language of Choice: C/C++, Java

Re: Help with Collision

Post by Ginto8 »

wearymemory wrote:Ginto8, I believe your function returns true when Rect a is on the right or bottom sides of Rect b, and is at most one pixel away (with no pixels in between), but if Rect a is to the left or top of Rect b, then your function only returns true if the two are intersecting.
oops. Should've made the >'s >='s :lol:
Quit procrastinating and make something awesome.
Ducky wrote:Give a man some wood, he'll be warm for the night. Put him on fire and he'll be warm for the rest of his life.
Post Reply