Trying to figure out the best way to do collision detection with a pre-rendered background. I understand that you should have a collision polygon, but I am not sure how would you test against the poly with a sphere or iso tile.
http://www.angelfire.com/clone/wolfbane/ex1.jpg
lets say the blue shape is the collision polly and the red box is the object that cannot pass through it. What type of collision detection should I do? I am thinking that I should store the line equations of each part of the collision poly and then test a point on the box against a relevent point on the polly that I could find through the equations. Thats how I did it when I wrote my iso tile collision algorythm. Problem with that is how do I know when to do the test. In my iso tile collision I tested when two bounding boxes intersected.
Anyone know how poly collision is done when using pre rendered backgrounds? I read somewhere that the poly could be made to do a check if anyone is populationg its “solid” part, but I am prob wrong.