PathEngine home previous: iMesh::newObstacleSet_WithAttributes()next: iMesh::placeLargeStaticObstacle()
Contents, API Reference, Interfaces, iMesh, placeAgent

iMesh::placeAgent()

Description

Constructs an Interface iAgent object to represent placement of an object of a given shape at a point on the surface of this mesh.

Syntax

iAgent* placeAgent(iShape* shape, const cPosition& position) const;

Parameters

shape The shape of the agent. This shape determines how the agent will collide.
position Where to place the agent.
This must be a valid position on this mesh.

Return Value

A newly created Interface iAgent.

Remarks

The created Interface iAgent can be explicitly deleted when no longer required, but will also be deleted when this mesh is destroyed. In either case the pointer can no longer be used.


Documentation for PathEngine release 5.17 - Copyright © 2002-2008 PathEnginenext: iMesh::placeLargeStaticObstacle()