Page 1 of 1

Collision Detection

PostPosted: Oct 9, 2004 @ 5:19pm
by mitch
I read on the docs that you can use the intersect function of CGapiSurface to test whether two surfaces collide.

I read over the function and have used a (non-gapi) collision detection function before, but Im mixing up my x and ys here.

So here are a few questions:

1.) Can the two surfaces be the same surface?
2.) I want to test if two images collide tha are blitted onto the BackBuffer. To do this I would set the x and y's in the Intersect function to 0, 0 correct? (Both)
3.) For the RECT type, I read the struct being top, left, bottom, right or something close to that. Is that the same as x, y (top left), width, height? That is what im used to.

PostPosted: Oct 11, 2004 @ 5:37am
by fzammetti