| PathEngine home | previous: | next: |
Creates a new iShape object.
iShape* newShape(tSigned32 numberOfPoints, const tSigned32* coordinateData); |
| numberOfPoints | The number of vertices in the shape. | ||
| coordinateData | Points to an array of tSigned32, of size numberOfPoints * 2. This array is copied, and can therefore be safely deleted after the call returns. |
The iShape
obtained can be used to place agents with the given shape on a ground mesh,
or to make queries about possibilities for movement for agents with this shape.
The coordinate data is interpreted as x1, y1, x2, y2.. up to the number of points specified.
These coordinates are relative to the origin (0, 0), and specifiy a shape boundary relative to this origin.
See
See
The created
Use
| Documentation for PathEngine release 5.17 - Copyright © 2002-2008 PathEngine | next: |