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



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


bool canCollide() const;

Return Value

Returns true, if the agent is moveable and collision preprocess has been generated on the agent's mesh for the agent's shape. Otherwise returns false.


For non-moveable agents, this method returns false.

Otherwise, this method essentially just calls on to iMesh::shapeCanCollide() for the agents mesh and shape.
(So the same remarks about 'unpreprocessed collision queries' also apply here.)

C# Mapping

bool canCollide();

Java Mapping

boolean canCollide();

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