Openage: Obstruction manager

Created on 7 Feb 2017  Â·  2Comments  Â·  Source: SFTtech/openage

As part of the pathfinding, we need an obstruction manager.
It is for keeping track of not-so-often changing parts in the world.

What should that thing do:

  • Provide nav-mesh that allows inter-chunk-navigation
  • Update the nav-mesh when buildings are placed, trees fall, etc
  • Keeps a density grid by terrain slope, terrain type and other obstructions that just slow things down

The obstruction manager ignores moving units.

The nav-mesh is used by the long-range pathfinder ("where is a possible way to the goal 40 chunks away"). The long range search is probably done by A*, maybe with JPS, but it doesn't matter.
The density grid is used by the flow field pathfinding, so it can integrate that density grid so units can then do gradient descent on it.

c++ nice new thing ☺ to-discuss

Most helpful comment

Such links tend to go down once you finally need them, for archival purposes here they are mirrored:

L5_Terrain_Analysis.pdf.txt

2114-9435-1-PB.pdf.txt

All 2 comments

Such links tend to go down once you finally need them, for archival purposes here they are mirrored:

L5_Terrain_Analysis.pdf.txt

2114-9435-1-PB.pdf.txt

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dbrgn picture dbrgn  Â·  7Comments

TakesTheBiscuit picture TakesTheBiscuit  Â·  12Comments

momo-aux picture momo-aux  Â·  10Comments

UmbertoCorvaglia picture UmbertoCorvaglia  Â·  6Comments

heinezen picture heinezen  Â·  7Comments