swordlegend / recastnavigation

Automatically exported from code.google.com/p/recastnavigation
zlib License
0 stars 0 forks source link

Custom costs for A* #47

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Allow to modify cost per polygon so that it only affects the current path
query.

Original issue reported on code.google.com by memono...@gmail.com on 13 Feb 2010 at 8:08

GoogleCodeExporter commented 9 years ago
- allow to modify cost
- allow to modify flags

Original comment by memono...@gmail.com on 23 Feb 2010 at 8:37

GoogleCodeExporter commented 9 years ago
I was wondering about this - why not have the agent that's finding the path to 
specify a cost multiplier per region type? So, for example, a region flagged as 
"water" could have a 5x multiplier for an agent, which would result in the 
agent preferring to skirt around the water instead of going through it (unless 
the path around the water is >5x further). If the multiplier is set to a 
specific value (perhaps 0) then it means that the region should be avoided. I 
think this is more flexible than having regions either on/off from an agent's 
point of view.

Original comment by armstron...@gmail.com on 10 Aug 2010 at 4:37

GoogleCodeExporter commented 9 years ago
Fixed in R200. You can create custom version of dtQueryFilter, which allows to 
modify the polygon visiting checks and cost calculations.

Original comment by memono...@gmail.com on 20 Aug 2010 at 10:10