unreal.PCGPathfindingCostFunctionMode

class unreal.PCGPathfindingCostFunctionMode

Bases: EnumBase

EPCGPathfinding Cost Function Mode

C++ Source:

  • Plugin: PCG

  • Module: PCG

  • File: PCGPathfindingElement.h

COST_MULTIPLIER: PCGPathfindingCostFunctionMode = Ellipsis

Pathfinding cost will be the distance multiplied by the provided factor. Note that multipliers below 1 will be clamped to 1.

Type:

2

DISTANCE: PCGPathfindingCostFunctionMode = Ellipsis

Pathfinding cost will be the distance only.

Type:

0

FITNESS_SCORE: PCGPathfindingCostFunctionMode = Ellipsis

Pathfinding cost will be driven by a fitness score (0-1 range), with a maximum penalty applied at fitness = 0.

Type:

1