|
-
Sep 24th, 2003, 02:04 PM
#1
Thread Starter
Fanatic Member
Collision detection.
Alright, I have 2 boxes (C code). I want box A, to check if it collided with box B (the bounding box), and if so, stop it.
Right now, I have a function that returns 0 or 1, but the way I check for collision is, the function accepts and X, Y, and the 4 points of the bounding box, it will check the bounding box to see if the X, Y is in it, and return 1 or 0 depending on what it is. Is their a better way of doing this?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|