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

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.04 - Copyright © 2002-2024 PathEnginenext: iAgent::canPathfind()