PathEngine home previous: Getting startednext: Changing agent height
Contents, Programmers Guide, The 3D Content Processing Demo, Placing an agent and pathfinding

Placing an agent and pathfinding

Placing an agent

Go into Test mode, without editing the initial scene, and use the TestBed camera controls to zoom in on the objects on the flat plane towards the top of the scene, near the bridge.

(Pressing 'R' toggles ghosted rendering of the 3D objects, over the top of the ground mesh.)

Move the mouse cursor over a point in the middle of the bridge, and press 'A' to place a pathfinding agent.
Then move the cursor over a point on the other side of the table, and press 'T' to set the agent's target.
A path should be drawn for the agent, through the scene, to the target position.

If you attempt to place the agent (or target) in a position where the agent shape would interpenetrate an obstacle then the demo will choose a nearby, unobstructed position, within a certain range.
If there is no unobstructed postion within that range then the agent (or target) will not be placed and instead you will see a red cross at the picked position and an error message.

An agent, with a path through the scene.

The demo starts off in a paused state. Press 'P' to unpause the demo and the agent will move along their path to the target position.

All uncovered upward facing surfaces are considered ground

Any upward facing surfaces where the agent would not be in collision with overhead obstacles is considered valid ground.

You can place the agent on top of the table, for example, but cannot then path to anywhere else.
(Note that the 3D content processing permits paths to cross steps up to a certain height, but in this case the vertical distance involved is greater than the step height used for the demo.)


Documentation for PathEngine release 5.16 - Copyright © 2002-2008 PathEnginenext: Changing agent height