The use_distance function calculates the Euclidean distance between two points using the Pythagorean theorem: √(x² + y²)
Why we need use_fixed_dist:
The formula breakdown:
delta_x = hit_x - player.x - Horizontal distance to walldelta_y = hit_y - player.y - Vertical distance to wallangle = atan2(delta_y, delta_x) - player.angle - Angle difference from player's forward directionfix_dist = euclidean_distance * cos(angle) - Corrected distance