PathEngine home previous: SlideAgainst()next: Path objects
Contents, Programmers Guide, Tutorials, Tutorial 3

Tutorial 3

Description

This tutorial builds on 'tutorial1' to introduce some pathfinding queries, and to demonstrate advancing an agent along a path.

Path objects
The shortest path query
The path away query
Advancing along a path
Setting agent heading from the path
Post processing the agent's path

The code for this tutorial can be found in the 'tutorial3' project of the 'samples' solution included with the release.
Once built, the release build can be run by double-clicking 'run tutorial3.bat', in the 'bin' subdirectory of the SDK.

When you run the application you can place and move the agent and the obstacles as before. You can also press left mouse to make the agent move towards the point under the mouse, or right mouse to make the agent move away from the mouse. When you release the mouse button the agent will continue to advance along their current path until the end of the path is reached.


Documentation for PathEngine release 5.29 - Copyright © 2002-2012 PathEnginenext: Path objects