I'm looking for a pathfinding algorithm that works in continuous space. What I mean by continuous space is that the positions can take any value and are not limited by 'tiles'. The A* pathfinding algorithm works only if the space is divided into squares (or hexagons, ...).
I'm struggling with this problem and I don't know what to do.
The conditions are:
- All the obstacles can be simplified to a rectangle on the map (to avoid too complex things). Rectangle is aligned with the axis
- The node that is moving is also represented by such a square and the complete square must be used for pathfinding (there can't be an overlap of two squares).
- Like always, it should be fast enough
- It should also detect the shortest path in every situation.
I think a way to go is to model the space into squares that are free (you can move everywhere in the square) and then, on basis of these squares, use the A* algorithm.
But I'm stuck at this modeling part. The only thing I have is the coordinates of all the obstacles rectangle. From there, how can I construct the "free squares" ?
Any help is really appreciated.