Posted April 3, 200619 yr Okay... back when I was using SDL, I used to have 35 different images for one sprite, rotated at 10x degrees for each image, x being the image number. Now that I'm using OpenGL I dithced that system, and just used glRotate. Much better. However, I'm getting into a problem of per pixel collision detection. Back in SDL, I just found the area of the overlapping rectangles, checked to see if the alpha values were above 0 in the same places, and if they were, return true. Now, since I only have a copy of the image facing north, how exactly would I go about collision detection?
April 5, 200619 yr Rotate your points, and check for collision via collision boxes. Also use sphere-sphere collision. Also use gamedev.net for questions like these, how many people that use these forums do you think will know?
April 5, 200619 yr Author Asterix and ViperX are pretty knowlegable. I already asked you anyway, and I already got the answer... I'm using elliptical detection. I was just wondering if any of these guys might think up a better idea.