|PathEngine home||previous: ||next: |
Unlike the previous two tutorials, this tutorial will add pathfinding queries as well as the simpler collision queries. So we'll need to change the way we create unobstructed space preprocess slightly, and add in a call to generate preprocess for pathfinding.
Pathfind preprocess generation requires 'combined' unobstructed space boundaries, so we change the unobstructed space generation generation call to set the 'combine' parameter to true:
mesh->generateUnobstructedSpaceFor(*agent_shape, true, 0);
And then we call the generatePathfindPreprocessFor() method to actually generate pathfind preprocess:
|Documentation for PathEngine release 6.03 - Copyright © 2002-2021 PathEngine||next: |