PathEngine home previous: iCollisionContext::getObstacleSet()next: iCollisionContext::hasOverlayConnectionPenalties()
Contents, API Reference, Interfaces, iCollisionContext, getOverlayConnectionPenalty

iCollisionContext::getOverlayConnectionPenalty()

Description

Helper method for querying the value of overlay connection penalties set previously for this context (with iCollisionContext::setOverlayConnectionPenalty()).

Syntax

int32_t getOverlayConnectionPenalty(int32_t connectionIndex) const;

Parameters

connectionIndex The index for the connection to be queried.
(Must be non-negative and less than the number of off-mesh connections on the mesh for which this context was created.)

Return Value

The current overlay penalty for the specified connection, if any, or otherwise the base penalty for the connection.

C# Mapping

int getOverlayConnectionPenalty(int connectionIndex);

Java Mapping

int getOverlayConnectionPenalty(int connectionIndex);

Documentation for PathEngine release 6.04 - Copyright © 2002-2024 PathEnginenext: iCollisionContext::hasOverlayConnectionPenalties()