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



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


int32_t getOverlayConnectionPenalty(int32_t connectionIndex) const;


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.00 - Copyright © 2002-2016 PathEnginenext: iCollisionContext::hasOverlayConnectionPenalties()