ok so im using lazarus and i have a problem.
im trying to make a wall collision sytem similar to games like doom 1/2 ect. so basicly when i hit a wall at an angle it makes the player "slide" along that wall.
what i have is...
a line with starting xy and ending xy points, i allready have working code to detect a collision on the line and get the pixel xy point of the collision on the line. but i cant get the sliding effect to work.
ive found some info on this, but i still cant figure it out...
so im hoping someone could give me some simple working code to do it in like a function or something.
something like...
a function that takes the player view Angle and XY position + the collision point in the line and returns it as a new player XY position.
so im basicly looking for some working code rather than the science behind the method. (my math skills suck!)
any help would be appreciated!