PathEngine home | previous: | next: |
Tells PathEngine about the possibility for agents to move 'off-mesh' between a pair of endpoints.
int32_t addOffMeshConnection(int32_t fromEndPoint, int32_t toEndPoint, int32_t 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.
Note that the start and end endpoint pair for each connection added to a mesh should be unique for that mesh, i.e. no two off mesh connections on a mesh should share
Any endpoints and connections on a mesh are saved out with the mesh when the mesh is saved.
See
int addOffMeshConnection(int fromEndPoint, int toEndPoint, int penalty); |
int addOffMeshConnection(int fromEndPoint, int toEndPoint, int penalty); |
Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEngine | next: |