Skip to content

API > NavMeshLinkData > costModifier


NavMeshLinkData.costModifier⚓︎

Name Type
costModifier number

Description⚓︎

If positive, overrides the pathfinder cost to traverse the link.

Extra Detail⚓︎

When searching for a path this cost multiplies the Euclidean distance between the link end points when scoring the link. If the value is negative, the default cost based on area type is used. The value must be >= 1.0.