|PathEngine home||previous: ||next: |
Finds the shortest path from the agent's current position to a specified target position.
std::unique_ptr<iPath> findShortestPathTo(const iCollisionContext* context, const cPosition& target) const
The state of dynamic collision that will apply for this query.|
An empty context can be specified by passing nullptr for this argument.
Note that the agent is not considered to obstruct itself even if included in this context.
|target||The target position for pathfinding. This position must be a valid position on the agent's mesh.|
Requires that the agent is moveable and that pathfinding preprocess has been generated on the agent's mesh for the agent's collision shape.
The start point for pathfinding (i.e. the agent's current position) must not be obstructed by the base mesh or burnt-in obstacles.
Calling this method is functionally equivalent to calling
Path findShortestPathTo(CollisionContext context, PathEngine.Position target);
Path findShortestPathTo(CollisionContext context, Position target);
|Documentation for PathEngine release 6.00 - Copyright © 2002-2016 PathEngine||next: |