well basically its a top down game, and I want it for the walls, so you're going around and theres a wall at an odd angle, when you walk into the wall, you want it to give a normal reaction and stop all motion in that direction. so you'd have like while sprite overlaps wall -> set x+cos(normal) y+sin(normal)
I realise there might well be a better way of doing this, everything I've tried though I've come up against this.
was the mario galaxy thing you mentioned this? because I actually looked at this for inspiration and couldnt work out what the heck was going on
My latest thought has been to create some objects in the wall, roughly at the collision, then push them out of the wall in your direction at the speed you came in, when they're out, can make a line between them which should be a tangent, then can find normal from that. Prob wont work though heh.
EDIT: what if the walls are limited to be boxes? theres gotta be a way of working it out correctly from that right?