PathEngine home previous: iMesh::getConnectedRegionFor()next: iMesh::getEndPoint()
Contents, API Reference, Interfaces, iMesh, getConnectedRegionForAgent

iMesh::getConnectedRegionForAgent()

Description

Returns an index for the connected region for an agent's current position.

Syntax

int32_t getConnectedRegionForAgent(iAgent& agent) const;

Parameters

agent The agent to be used for the query.

Requirements

Must not be called for non-moveable agents.

Requires that connected region preprocess has been generated on this mesh for the collision shape specified.

Return Value

An index value for the connected region at the the agent's current position.

Remarks

This is equivalent to calling iMesh::getConnectedRegionFor(), with the agent's current position and shape.

C# Mapping

int getConnectedRegionForAgent(Agent agent);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iMesh::getEndPoint()