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

iAgent::canCollide()

Description

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

Syntax

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.

Remarks

This method actually tells you whether or not shape collision preprocess has been generated for the agent's shape on the agent's mesh.
If the 'collision queries without shape preprocess' feature has been enabled for the agent's mesh then collision queries can be performed for moveable agents even if this method returns false.
Documentation for PathEngine release 5.29 - Copyright © 2002-2012 PathEnginenext: iAgent::canPathfind()