| PathEngine home | previous: | next: |
Tells PathEngine about the possibility for agents to move 'off-mesh' between a pair of endpoints.
tSigned32 addOffMeshConnection(tSigned32 fromEndPoint, tSigned32 toEndPoint, tSigned32 penalty); |
| fromEndPoint |
An index (previously returned by | ||
| toEndPoint |
An index (previously returned by | ||
| penalty |
Enables a penalty to be specified for movement across the connection. This value is added to the straight line cost of movement between the endpoints, and must be in the range 0 to 10000. |
A unique index for the connection.
(Connection indices start at zero for the first connection added and are then incremented.)
This index is used to refer to this connection, for example, by
This method may not be called after collision or pathfinding preprocess has been generated or loaded for this mesh.
Any endpoints and connections on a mesh are saved out with the mesh when the mesh is saved.
See
| Documentation for PathEngine release 5.17 - Copyright © 2002-2008 PathEngine | next: |