Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

collision detection

Status
Not open for further replies.

guitardave78

Programmer
Sep 5, 2001
1,294
0
0
GB
Hey all.
I would like to be able to detect when object a hits object b.

They are both square and both 30px x 30px.

I need it to be more accurate than just checking if the x/y coords match, so i need to know if the left side of box a hits the right side of box b etc.

Anyone done this?

Cheers

}...the bane of my life!
 
Dave, can you post a link or provide some code as to how your objects are moving or growing etc?

Nick

where would we be without rhetorical questions...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top