Original Post
I have been pondering an interesting pathfinding problem for some time. I thought maybe I could post it here with my idea for solving it and you all could critique or give insight. Let's say you have a large flat square area. On the surface, you have objects moving across in one direction. You are located at one side of the area and your destination is somewhere on the surface. Also, you are not allowed to come within a certain distance of any object as you move across the surface. The object is to find a path before you start moving that would allow you to get from your start point to the destination point without coming in range of the other objects. As I look at the problem, I see it exists is 3 dimensions, the X dimension, and Z dimension, and the Time dimension. If I were to use A*, my pathfinding algorithm would only work in two dimensions, X and Z because it doesn't take into account the movement of objects over time. So, my idea was to extend the pathfinding model into 3 dimensions. I would create a cube grid in which each layer moving up is another step forward in time, with each layer representing a certain range of time. On each layer, I would plot the objects and mark all grid nodes around them that fall within my minimum distance as being impassible. When Im done, what I would have is a cube with these tube objects through them that represent the other object's movements through time. Now all I would have to do is find a path through the cube where I don't intersect any of the tubes given than as I start pathfinding, when my time is within a certain time range, I have to search through the grid layer than corresponds to my time. Did I explain my idea well enough? Do you think it would work? Any thoughts or ideas? Thanks.