BaldrDash / recastnavigation

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

dtNavMeshQuery::findStraightPath to respect area changes #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

How easy would it be to get the "findStraightPath" function to add a 
vertex/dtPolyRef into the returned "straightPath" and "straightPathRefs" 
whenever the poly area type changes? At the moment the function loses some 
useful info. Perhaps it could be done only if the user specifies that they want 
the extra info...so that the function performance is not compromised.

Thanks,
Neil

Original issue reported on code.google.com by armstron...@gmail.com on 12 Nov 2010 at 10:02

GoogleCodeExporter commented 9 years ago
It should not be too hard.

Thinking out loud, one idea would be to keep track of the edges where the are 
changes between the previous and current vertex and split the new segment at 
those locations. This could happen only if there is pointer to 
straightPathAreas or something like that (or maybe a flag too). 

Original comment by memono...@gmail.com on 12 Nov 2010 at 11:20

GoogleCodeExporter commented 9 years ago

Original comment by memono...@gmail.com on 16 Sep 2013 at 7:09