|PathEngine home||previous: ||next: |
Finds the shortest path from a given start position to a given end position for agents with a specified collision shape.
iPath* findShortestPath(const iShape* shape, const iCollisionContext* context, const cPosition& start, const cPosition& goal) const;
|shape||The collision shape to use for this query.|
The state of dynamic collision that will apply for this query.|
An empty context can be specified by passing a value of zero for this argument.
The start point for pathfinding.|
This position must be a valid position on this mesh, and must not be obstructed by the base mesh or burnt-in obstacles.
The target point for pathfinding.|
This position must be a valid position on this mesh.
Requires that pathfind preprocess has been generated on this mesh for the collision shape specified.
Calling this method is functionally equivalent to calling
Path findShortestPath(Shape shape, CollisionContext context, PathEngine.Position start, PathEngine.Position goal);
Path findShortestPath(Shape shape, CollisionContext context, Position start, Position goal);
|Documentation for PathEngine release 6.00 - Copyright © 2002-2016 PathEngine||next: |