The idea is as follows:
- Define a bounding box in which we want to generate a grid-like graph.
- For each of many points inside that bounding box, if it is close to the NavMesh, stick it to the ground. If it is not, delete it.
- Connect these nodes based on adjacency in the grid.
The results look something like this (the tree shown is the graph search):
![]() |
| As usual, the red line is the rough path that was returned by the planner. Much nicer than before. |
As it is now, planning takes a few seconds. We discussed some performance ideas in the meeting; the primary idea was to use two levels of navigation mesh detail: use something like the old mesh-based graph for rough planning, and use the new graph when we need detail to deal with constraints, and to perfect/smooth the path.
That said, we might use a graph more like the one Francisco is working on--a quadtree with nodes at the centers of each leaf quad.
Here is the animated result of the plan:

No comments:
Post a Comment