| PathEngine home | previous: | next: |
Each query accepts a collision context argument.
This controls the set of obstacles to be 'included' for the query.
In general, each query can be invoked on either the
The iAgent methods supply
arguments corresponding to the position and shape
of the agent on which the method is called,
and ensure that the agent itself is not treated as an obstruction.
(See
Note that this shortest path query version can then also be used for implementing search to multiple targets,
in cases where paths are reversible, by calling
This can be used as the basis for a 'run away' behaviour.
(See
This query is essential for pathfinding to or from positions that may be outside unobstructed space for a pathfinding agent, for example in the case where large agents chase smaller agents, or when agents move under the control of an external collision system.
And this can also be very useful as a component for constructing quite a wide variety of different movement based behaviours, for example attack target slot generation when multiple agents are assigned to attack a target and should not overlap, finding 'escape' positions outside of arbitrary danger shapes, and so on.
Note that this query does not actually require full pathfind preprocess generation, only collision preprocess is required.
| Documentation for PathEngine release 5.29 - Copyright © 2002-2012 PathEngine | next: |