Angle of wall (degrees) in relation to player?

I gather you mean the angle where the player intersects the wall if you was to draw a line (ie a trace) to it? You could use maybe Cartesian to Polar coordinates which would give you the angle.

Find the coords where the player line of sight meets the wall (object) and perform the conversion.

Not sure about @Husky211 response as i have never performed this and his method maybe much better, but check this out:

Hope it helps

Stewart

1 Like