|PathEngine home||previous: ||next: |
Draws an indicator to show which way an agent is facing.
void drawAgentHeading(iAgent* agent, int32_t size, int32_t height, float heading);
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,
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.
|Documentation for PathEngine release 6.03 - Copyright © 2002-2021 PathEngine||next: |