PathEngine home previous: iTestBed::drawAgentExpansion()next: iTestBed::drawAgentHeadingWithPrecision()
Contents, API Reference, Interfaces, iTestBed, drawAgentHeading



Draws an indicator to show which way an agent is facing.


void drawAgentHeading(iAgent* agent, int32_t size, int32_t height, float heading);


agent The indicator will be drawn at this agent's current position.
The agent must be on the currently set mesh.
size Controls the size of the indicator.
height Specifies the height at which to place the indicator. Set this to the same value as was used to draw the agent.
heading The direction of the indicator, in radians, where 0 is the direction of positive Y, and PI/2 is the direction of positive X.


To draw an agent with a heading indicator, call iTestBed::drawAgent() followed by this method, with the same value for height.

If there is no currently set mesh then this function returns with no effect.

The indicator will be drawn in the testbed's current colour.

See Also

iTestBed::setColour(), iTestBed::setColourRGB(), iTestBed::drawAgent()
Documentation for PathEngine release 6.00 - Copyright © 2002-2016 PathEnginenext: iTestBed::drawAgentHeadingWithPrecision()