PathEngine home previous: iAgent::getUserData()next: iAgent::hasRefs()
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(int32_t index, int32_t& x, int32_t& 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()

C# Mapping

void getVertexCoordinates(int index, out int x, out int y);

Java Mapping

void getVertexCoordinates(int index, int_OutArgument x, int_OutArgument y);

Documentation for PathEngine release 6.00 - Copyright © 2002-2016 PathEnginenext: iAgent::hasRefs()