Pixel Collision - Detecting corners
- by Milkboat
How would I go about detecting the corners of a texture when I use pixel collision detection? I read about corner collision with rectangles, but I am unsure how to adapt it to my situation.
Right now my map is tile based and I do rectangular collision until the player is intersecting with a blocked tile, then I switch to pixel collision.
The effect I would like to achieve is when the player hits the corner of an object to push him around the side so he doesn't just hit the edge and stop.
Any ideas?