PathEngine home previous: iCollisionContext::setSurfaceTypeTraverseCost()next: iCollisionContext::updateCollisionPreprocessFor()
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(tSigned32 surfaceType, tSigned32 directionVectorX, tSigned32 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()
Documentation for PathEngine release 5.16 - Copyright © 2002-2008 PathEnginenext: iCollisionContext::updateCollisionPreprocessFor()