PathEngine home previous: iAgent::generateCurvedPath_WithEndVector()next: iAgent::getMesh()
Contents, API Reference, Interfaces, iAgent, getAllAgentsOverlapped

iAgent::getAllAgentsOverlapped()

Description

Fills a buffer with the set of agents in a given context overlapped by this agent.

Syntax

void getAllAgentsOverlapped(const iCollisionContext* context, tVector& overlappedAgents) const

Parameters

context The state of dynamic collision that will apply for this query.
An empty context can be specified by passing nullptr for this argument.
overlappedAgents (See Passing Arrays.) Returns the set of agents overlapped by the query shape.

Requirements

Requires that the agent is moveable and that collision preprocess has been generated on this agent's mesh for this agent's collision shape.

Remarks

This method is equivalent to calling through to iMesh::getAllAgentsOverlapped() on the agent's mesh with the agent's position and collision shape.

C# Mapping

void getAllAgentsOverlapped(CollisionContext context, out Agent[] overlappedAgents);

Java Mapping

void getAllAgentsOverlapped(CollisionContext context, Object_OutArgument overlappedAgents);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iAgent::getMesh()