| PathEngine home | previous: | next: |
Finds the shortest path of escape from a specified region from a given start position.
iPath* findPathAway(iShape* shape, const iCollisionContext* context, const cPosition& start, const cPosition& awayFrom, tSigned32 distanceAway) const; |
| shape | The collision shape to use for this query. | ||
| context |
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. | ||
| start |
The start point for pathfinding. This position must be a valid position on this mesh. This start point must be unobstructed. | ||
| awayFrom | A position defining the centre of a region to escape from. This position must be a valid position on this mesh. | ||
| distanceAway |
Controls the size of the region to escape from.
Must be greater than zero. |
Calling this method is functionally equivalent to calling
| Documentation for PathEngine release 5.16 - Copyright © 2002-2008 PathEngine | next: |