PathEngine home | previous: | next: |
The geometric shortest path will usually contain sharp corners.
We can eliminate these by post processing the path with the
generateCurvedPath() method.
We do this with the following modification immediately after finding a path:
auto base_path = agent->findShortestPathTo(context,target); if(base_path) { path = agent->generateCurvedPath(*base_path,context,0,0,20,0.3f,0.4f); } |
(And a similar modification for paths away.)
See
Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEngine | next: |