| PathEngine home | previous: | next: |
Returns an index for the connected region at a given position. This can be used to quickly determine the reachability between positions.
tSigned32 getConnectedRegionFor(const iShape* shape, const cPosition& p) const; |
| shape | The collision shape to use for this query. | ||
| p | The position to test. |
Requires that collision or pathfinding preprocess has been generated on this mesh for the collision shape specified, with connected region queries enabled with the relevant collision preprocess or pathfind preprocess generation attribute.
A position is reachable from another position if both positions are unobstructed and this query returns the same connected region indices for both positions.
If called with an obstructed position, this method will return -1.
This method queries against the static geometry on this mesh (i.e. external edges and burnt in obstacles).
Use
| Documentation for PathEngine release 5.29 - Copyright © 2002-2012 PathEngine | next: |