PathEngine home previous: iAgent::canCollide()next: iAgent::findClosestUnobstructedPosition()
Contents, API Reference, Interfaces, iAgent, canPathfind



A helper function to determine whether pathfinding queries can be made for the agent.


bool canPathfind(const iCollisionContext* context) const;


context The collision context that will be used for pathfinding. Can be set to zero if no context will be used (as for the pathfinding queries themselves).

Return Value

Returns true, if the agent is moveable and pathfinding queries are supported on the agent's mesh for the agent's shape and with the supplied collision context. Otherwise returns false.


For non-moveable agents, this method returns false.

Otherwise, this method essentially just calls on to iMesh::shapeCanPathfind() for the agents mesh and shape.

C# Mapping

bool canPathfind(CollisionContext context);

Java Mapping

boolean canPathfind(CollisionContext context);

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