PathEngine home previous: iAgent::getShape()next: iAgent::getTraverseCostDirection()
Contents, API Reference, Interfaces, iAgent, getTraverseCost



A helper function which can be used to determine whether an agent is set to behave as a 'soft obstacle', and the traverse cost associated with the agent.


float getTraverseCost() const;

Return Value

If the agent has been set to behave as a soft obstacle then the traverse cost for the agent will be returned (which will be a value >=0.f).
Otherwise -1.f is returned, to indicate that the agent is a traditional 'hard obstacle'.

See Also


C# Mapping

float getTraverseCost();

Java Mapping

float getTraverseCost();

Documentation for PathEngine release 6.03 - Copyright © 2002-2021 PathEnginenext: iAgent::getTraverseCostDirection()