I need to let the user draw a path on a grid but without a precision - the algorithm should adjust the path.
Example images where red line indicates the continuous path user will draw and blue dots are the final path
or
- I cant get away with pathfinding as I dont need the optimal path
- I need it to update on each user input(while drawing red line)
I am thinking something about intersections(red dots) so I would add intersection to the list from which to pathfind until the current input and maybe some weighted graph approach but have no final idea. I would appreciate any advice on this.!