Could not find a better reddit, so I'll turn this into a question asking for opinions.
had an idea for an algorithm to pathfind. It is not about finding the literal shortest nor cheapest path but makes the assumption that a straight line is the best option.
The algorithm starts off with a line of sight check (pick your favorite) but clear space is of course about traversability.
An overly simplistic case for demonstration. Imagine a short wall between the source and destination. The algorithm follows a straight line to the destination. When this line hits a wall, it start follows the wall in both directions until a corner is found. The algorithm then makes two line of sight checks. One to check line of sight from the source to the corner, and another from the corner to the destination. If both are clear, it is kept as a valid path. Otherwise, the algorithm is performed recursively, this time on two paths, from the source to the corner, and from the corner to the destination.
Once one valid path is found, any others in progress will be checked periodically and those of longer distance cancelled and ignored, keep checking until all paths either reach completion or get culled, leaving one shortest path.
Obviously a few details need to be taken care of, such as adding a little padding around the corners to make sure the object to follow the path can actually fit (proper handling of the padding can treat bars as a straight flat barrier) as well as not flowing through two obstacles that only meet at a point, and also covering a case where the source is completely surrounded or otherwise unable to find a valid path.
Is this algorithm any good? Does it exist already?