| PathEngine home | previous: | next: |
Enables a direction to be associated with the traverse cost for a soft obstacle.
void setTraverseCostDirection(tSigned32 directionVectorX, tSigned32 directionVectorY); |
| directionVectorX | The x component of the desired direction vector. | ||
| directionVectorY | The y component of the desired direction vector. |
An agent's traverse cost direction defaults to [0,0],
which indicates that the agent's
traverse cost acts on movement in all directions.
Setting this direction to a non-zero vector
changes a soft obstacle into a 'directional soft obstacle'.
The traverse cost is then applied only to the component of movement in the specified direction.
Note that no cost is applied to movement at right angles to or away from the specified direction.
The traverse cost direction has no effect on hard obstacles.
Refer to
The traverse cost direction currently associated with an agent can be obtained with
| Documentation for PathEngine release 5.16 - Copyright © 2002-2008 PathEngine | next: |