PathEngine home previous: iAgent::getUserData()next: iAgent::isMoveable()
Contents, API Reference, Interfaces, iAgent, getVertexCoordinates

iAgent::getVertexCoordinates()

Description

A helper function for access to underlying agent geometry, e.g. for debug rendering.

Syntax

void getVertexCoordinates(tSigned32 index, tSigned32& x, tSigned32& y) const;

Parameters

indexThis must be a positive integer less than the value returned by iAgent::getNumberOfVertices().
x Returns the X coordinate of the specified vertex, in pathfinding world space.
y Returns the Y coordinate of the specified vertex, in pathfinding world space.

Remarks

Certain agents do not have an iShape instance, for example agents that have been constructed with iMesh::placeLargeStaticObstacle(), and this helper function is then provided for more general access to underlying geometry that does not depend on an iShape instance.

See Also

iAgent::getNumberOfVertices()
Documentation for PathEngine release 5.29 - Copyright © 2002-2012 PathEnginenext: iAgent::isMoveable()