PathEngine home previous: iCollisionContext::setSurfaceTypeTraverseCost()next: iCollisionContext::temporarilyIgnoreAgent()
Contents, API Reference, Interfaces, iCollisionContext, setSurfaceTypeTraverseCostDirection

iCollisionContext::setSurfaceTypeTraverseCostDirection()

Description

Associates a direction with the traverse cost for regions marked with a specified surface type.

Syntax

void setSurfaceTypeTraverseCostDirection(int32_t surfaceType, int32_t directionVectorX, int32_t directionVectorY);

Parameters

surfaceType (Must be >= 0.)
The direction will apply to the traverse cost for regions marked with this surface type.
directionVectorX The x component of the desired direction vector.
directionVectorY The y component of the desired direction vector.

Remarks

Refer to Representing Regions with Cost to Traverse for more detail about surface type based costs.

The direction vector for each surface type defaults to [0,0], which indicates that any cost to traverse set for the region applies to movement in all directions.

See Also

iCollisionContext::setSurfaceTypeTraverseCost()

C# Mapping

void setSurfaceTypeTraverseCostDirection(int surfaceType, int directionVectorX, int directionVectorY);

Java Mapping

void setSurfaceTypeTraverseCostDirection(int surfaceType, int directionVectorX, int directionVectorY);

Documentation for PathEngine release 6.00 - Copyright © 2002-2016 PathEnginenext: iCollisionContext::temporarilyIgnoreAgent()